pub struct SpellText {Show 15 fields
pub name: String,
pub level: u8,
pub school: String,
pub casting_time: String,
pub range: String,
pub components: String,
pub material: String,
pub duration: String,
pub concentration: bool,
pub ritual: bool,
pub classes: Vec<String>,
pub description: String,
pub higher_levels: String,
pub source: String,
pub edition: Option<Edition>,
}Expand description
A spell as the books describe it. Everything but the name has a default, so a homebrew spell needs only what it has.
Fields§
§name: String§level: u80 for a cantrip.
school: String§casting_time: String§range: String§components: StringV, S, M.
material: StringWhat the M stands for.
duration: String§concentration: bool§ritual: bool§classes: Vec<String>§description: StringParagraphs, one per line; - starts a list item and **…** is
bold.
higher_levels: StringCasting it with a higher slot (or, for a cantrip, at higher levels).
source: String§edition: Option<Edition>Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpellText
impl<'de> Deserialize<'de> for SpellText
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
Source§impl RulesText for SpellText
impl RulesText for SpellText
impl Eq for SpellText
impl StructuralPartialEq for SpellText
Auto Trait Implementations§
impl Freeze for SpellText
impl RefUnwindSafe for SpellText
impl Send for SpellText
impl Sync for SpellText
impl Unpin for SpellText
impl UnsafeUnpin for SpellText
impl UnwindSafe for SpellText
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.