pub struct Pet {
pub id: u32,
pub level: u16,
pub fruits_today: u16,
pub element: HabitatType,
pub stats: Option<PetStats>,
pub can_be_found: bool,
}Fields§
§id: u32§level: u16§fruits_today: u16The amount of fruits this pet got today
element: HabitatType§stats: Option<PetStats>This is None until you look at your pets again
can_be_found: boolCheck if this pet can be found already
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pet
impl<'de> Deserialize<'de> for Pet
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 Pet
impl RefUnwindSafe for Pet
impl Send for Pet
impl Sync for Pet
impl Unpin for Pet
impl UnwindSafe for Pet
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