pub struct GiftsForCrafting {
pub total_count: i32,
pub gifts: Vec<ReceivedGift>,
pub attribute_persistence_probabilities: Vec<AttributeCraftPersistenceProbability>,
pub next_offset: String,
}Expand description
Represents a list of gifts received by a user or a chat
Fields§
§total_count: i32The total number of received gifts
gifts: Vec<ReceivedGift>The list of gifts
attribute_persistence_probabilities: Vec<AttributeCraftPersistenceProbability>The 4 objects that describe probabilities of the crafted gift to have the backdrop or symbol of one of the original gifts for the cases when 1, 2, 3 or 4 gifts are used in the craft correspondingly
next_offset: StringThe offset for the next request. If empty, then there are no more results
Trait Implementations§
Source§impl Clone for GiftsForCrafting
impl Clone for GiftsForCrafting
Source§fn clone(&self) -> GiftsForCrafting
fn clone(&self) -> GiftsForCrafting
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GiftsForCrafting
impl Debug for GiftsForCrafting
Source§impl Default for GiftsForCrafting
impl Default for GiftsForCrafting
Source§fn default() -> GiftsForCrafting
fn default() -> GiftsForCrafting
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GiftsForCrafting
impl<'de> Deserialize<'de> for GiftsForCrafting
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 GiftsForCrafting
impl PartialEq for GiftsForCrafting
Source§fn eq(&self, other: &GiftsForCrafting) -> bool
fn eq(&self, other: &GiftsForCrafting) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GiftsForCrafting
impl Serialize for GiftsForCrafting
impl StructuralPartialEq for GiftsForCrafting
Auto Trait Implementations§
impl Freeze for GiftsForCrafting
impl RefUnwindSafe for GiftsForCrafting
impl Send for GiftsForCrafting
impl Sync for GiftsForCrafting
impl Unpin for GiftsForCrafting
impl UnsafeUnpin for GiftsForCrafting
impl UnwindSafe for GiftsForCrafting
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