pub struct ClassLevel {
pub name: String,
pub subclass: Option<String>,
pub level: u8,
pub spellcasting_ability: Option<Ability>,
}Expand description
Levels in one class (with its subclass, and the ability it casts with, if any).
Fields§
§name: String§subclass: Option<String>§level: u8§spellcasting_ability: Option<Ability>Set for classes that cast spells (e.g. Intelligence for Wizard).
Trait Implementations§
Source§impl Clone for ClassLevel
impl Clone for ClassLevel
Source§fn clone(&self) -> ClassLevel
fn clone(&self) -> ClassLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for ClassLevel
impl ComposeSchema for ClassLevel
Source§impl Debug for ClassLevel
impl Debug for ClassLevel
Source§impl<'de> Deserialize<'de> for ClassLevel
impl<'de> Deserialize<'de> for ClassLevel
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 PartialEq for ClassLevel
impl PartialEq for ClassLevel
Source§fn eq(&self, other: &ClassLevel) -> bool
fn eq(&self, other: &ClassLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ClassLevel
impl Serialize for ClassLevel
Source§impl ToSchema for ClassLevel
impl ToSchema for ClassLevel
impl Eq for ClassLevel
impl StructuralPartialEq for ClassLevel
Auto Trait Implementations§
impl Freeze for ClassLevel
impl RefUnwindSafe for ClassLevel
impl Send for ClassLevel
impl Sync for ClassLevel
impl Unpin for ClassLevel
impl UnsafeUnpin for ClassLevel
impl UnwindSafe for ClassLevel
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.