pub struct Spell {
pub name: String,
pub level: u8,
pub class: Option<String>,
pub prepared: bool,
pub concentration: bool,
pub ritual: bool,
pub notes: String,
}Expand description
A spell the character knows or has prepared.
Fields§
§name: String§level: u80 for cantrips.
class: Option<String>Which class grants this spell, for multiclass characters.
prepared: boolWhether the spell can currently be cast. Defaults to true so “known” casters (Sorcerer, Bard, …) needn’t care; Wizards and Clerics toggle it.
concentration: bool§ritual: bool§notes: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Spell
impl<'de> Deserialize<'de> for Spell
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Spell
impl StructuralPartialEq for Spell
Auto Trait Implementations§
impl Freeze for Spell
impl RefUnwindSafe for Spell
impl Send for Spell
impl Sync for Spell
impl Unpin for Spell
impl UnsafeUnpin for Spell
impl UnwindSafe for Spell
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.