pub struct SaveGame {
pub score: u64,
pub game_id: Uuid,
pub firepower: u8,
pub health: u8,
pub inventory: BTreeSet<StorableInventoryItem>,
pub finished_level: usize,
}
Fields§
§score: u64
§game_id: Uuid
§firepower: u8
§health: u8
§inventory: BTreeSet<StorableInventoryItem>
§finished_level: usize
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SaveGame
impl<'de> Deserialize<'de> for SaveGame
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 SaveGame
impl RefUnwindSafe for SaveGame
impl Send for SaveGame
impl Sync for SaveGame
impl Unpin for SaveGame
impl UnwindSafe for SaveGame
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