pub struct UpgradedGiftModel {
pub name: String,
pub sticker: Sticker,
pub rarity: UpgradedGiftAttributeRarity,
pub is_crafted: bool,
}Expand description
Describes a model of an upgraded gift
Fields§
§name: StringName of the model
sticker: StickerThe sticker representing the upgraded gift
rarity: UpgradedGiftAttributeRarityThe rarity of the model
is_crafted: boolTrue, if the model can be obtained only through gift crafting
Trait Implementations§
Source§impl Clone for UpgradedGiftModel
impl Clone for UpgradedGiftModel
Source§fn clone(&self) -> UpgradedGiftModel
fn clone(&self) -> UpgradedGiftModel
Returns a duplicate of the value. Read more
1.0.0 · 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 UpgradedGiftModel
impl Debug for UpgradedGiftModel
Source§impl<'de> Deserialize<'de> for UpgradedGiftModel
impl<'de> Deserialize<'de> for UpgradedGiftModel
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 UpgradedGiftModel
impl PartialEq for UpgradedGiftModel
Source§impl Serialize for UpgradedGiftModel
impl Serialize for UpgradedGiftModel
impl StructuralPartialEq for UpgradedGiftModel
Auto Trait Implementations§
impl Freeze for UpgradedGiftModel
impl RefUnwindSafe for UpgradedGiftModel
impl Send for UpgradedGiftModel
impl Sync for UpgradedGiftModel
impl Unpin for UpgradedGiftModel
impl UnsafeUnpin for UpgradedGiftModel
impl UnwindSafe for UpgradedGiftModel
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