pub struct CharacterStatsSchema {
pub monsters_killed: Option<HashMap<String, i32>>,
pub resources_gathered: Option<HashMap<String, i32>>,
pub action_counts: Option<HashMap<String, i32>>,
pub deaths: Option<i32>,
}Fields§
§monsters_killed: Option<HashMap<String, i32>>§resources_gathered: Option<HashMap<String, i32>>§action_counts: Option<HashMap<String, i32>>§deaths: Option<i32>Implementations§
Source§impl CharacterStatsSchema
impl CharacterStatsSchema
pub fn new() -> CharacterStatsSchema
Trait Implementations§
Source§impl Clone for CharacterStatsSchema
impl Clone for CharacterStatsSchema
Source§fn clone(&self) -> CharacterStatsSchema
fn clone(&self) -> CharacterStatsSchema
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 Debug for CharacterStatsSchema
impl Debug for CharacterStatsSchema
Source§impl Default for CharacterStatsSchema
impl Default for CharacterStatsSchema
Source§fn default() -> CharacterStatsSchema
fn default() -> CharacterStatsSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CharacterStatsSchema
impl<'de> Deserialize<'de> for CharacterStatsSchema
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 CharacterStatsSchema
impl PartialEq for CharacterStatsSchema
Source§fn eq(&self, other: &CharacterStatsSchema) -> bool
fn eq(&self, other: &CharacterStatsSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CharacterStatsSchema
impl Serialize for CharacterStatsSchema
impl StructuralPartialEq for CharacterStatsSchema
Auto Trait Implementations§
impl Freeze for CharacterStatsSchema
impl RefUnwindSafe for CharacterStatsSchema
impl Send for CharacterStatsSchema
impl Sync for CharacterStatsSchema
impl Unpin for CharacterStatsSchema
impl UnsafeUnpin for CharacterStatsSchema
impl UnwindSafe for CharacterStatsSchema
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