pub struct Pet {
pub uuid: Option<String>,
pub pet_type: String,
pub exp: f64,
pub tier: String,
pub active: bool,
pub held_item: Option<String>,
pub skin: Option<String>,
pub candy_used: i64,
pub extra: JsonObject,
}Expand description
A single pet owned by a member.
Fields§
§uuid: Option<String>§pet_type: StringPet type id, e.g. ENDER_DRAGON.
exp: f64§tier: StringRarity tier: COMMON, UNCOMMON, RARE, EPIC, LEGENDARY, MYTHIC.
active: bool§held_item: Option<String>§skin: Option<String>§candy_used: i64§extra: JsonObjectTrait 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 UnsafeUnpin 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