pub struct ClassProperties {Show 15 fields
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 natural_explorer_terrain_type: Option<Vec<String>>,
pub ranger_favored_enemy_type: Option<Vec<String>>,
pub sorcerer_metamagic: Option<Vec<String>>,
pub warlock_eldritch_invocation: Option<Vec<String>>,
pub sorcerer_dragon_ancestor: Option<String>,
pub abilities: Arc<Mutex<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>§natural_explorer_terrain_type: Option<Vec<String>>§ranger_favored_enemy_type: Option<Vec<String>>§sorcerer_metamagic: Option<Vec<String>>§warlock_eldritch_invocation: Option<Vec<String>>§sorcerer_dragon_ancestor: Option<String>§abilities: Arc<Mutex<Abilities>>Trait Implementations§
Source§impl Clone for ClassProperties
impl Clone for ClassProperties
Source§fn clone(&self) -> ClassProperties
fn clone(&self) -> ClassProperties
Returns a duplicate 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