pub struct UniqueGiftModel {
pub name: String,
pub sticker: Sticker,
pub rarity_per_mille: u32,
pub rarity: Option<String>,
}Expand description
Model of a unique gift.
Fields§
§name: StringName of the model.
sticker: StickerThe sticker that represents this model.
rarity_per_mille: u32Number of unique gifts receiving this model per 1000 upgrades. Always 0 for crafted gifts.
rarity: Option<String>Rarity tier for crafted models: "uncommon", "rare", "epic", or "legendary".
Trait Implementations§
Source§impl Clone for UniqueGiftModel
impl Clone for UniqueGiftModel
Source§fn clone(&self) -> UniqueGiftModel
fn clone(&self) -> UniqueGiftModel
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 UniqueGiftModel
impl Debug for UniqueGiftModel
Source§impl<'de> Deserialize<'de> for UniqueGiftModel
impl<'de> Deserialize<'de> for UniqueGiftModel
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 UniqueGiftModel
impl RefUnwindSafe for UniqueGiftModel
impl Send for UniqueGiftModel
impl Sync for UniqueGiftModel
impl Unpin for UniqueGiftModel
impl UnsafeUnpin for UniqueGiftModel
impl UnwindSafe for UniqueGiftModel
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