pub struct ClassProperties {
pub level: u8,
pub subclass: Option<String>,
pub spell_casting: Option<ClassSpellCasting>,
pub fighting_style: Option<String>,
pub hunters_prey: Option<String>,
pub defensive_tactics: Option<String>,
pub additional_fighting_style: Option<String>,
pub multiattack: Option<String>,
pub superior_hunters_defense: Option<String>,
pub abilities_modifiers: Abilities,
}Fields§
§level: u8The level of the class
subclass: Option<String>Index from https://www.dnd5eapi.co/api/subclasses/
spell_casting: Option<ClassSpellCasting>Indexes from https://www.dnd5eapi.co/api/spells/
fighting_style: Option<String>§hunters_prey: Option<String>§defensive_tactics: Option<String>§additional_fighting_style: Option<String>§multiattack: Option<String>§superior_hunters_defense: Option<String>§abilities_modifiers: AbilitiesTrait Implementations§
Source§impl Clone for ClassProperties
impl Clone for ClassProperties
Source§fn clone(&self) -> ClassProperties
fn clone(&self) -> ClassProperties
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClassProperties
impl Debug for ClassProperties
Source§impl Default for ClassProperties
impl Default for ClassProperties
Source§fn default() -> ClassProperties
fn default() -> ClassProperties
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClassProperties
impl<'de> Deserialize<'de> for ClassProperties
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
Auto Trait Implementations§
impl Freeze for ClassProperties
impl RefUnwindSafe for ClassProperties
impl Send for ClassProperties
impl Sync for ClassProperties
impl Unpin for ClassProperties
impl UnwindSafe for ClassProperties
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