pub struct ReceivedGifts {
pub total_count: i32,
pub gifts: Vec<ReceivedGift>,
pub are_notifications_enabled: bool,
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
are_notifications_enabled: boolTrue, if notifications about new gifts of the owner are enabled
next_offset: StringThe offset for the next request. If empty, then there are no more results
Trait Implementations§
Source§impl Clone for ReceivedGifts
impl Clone for ReceivedGifts
Source§fn clone(&self) -> ReceivedGifts
fn clone(&self) -> ReceivedGifts
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 ReceivedGifts
impl Debug for ReceivedGifts
Source§impl Default for ReceivedGifts
impl Default for ReceivedGifts
Source§fn default() -> ReceivedGifts
fn default() -> ReceivedGifts
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReceivedGifts
impl<'de> Deserialize<'de> for ReceivedGifts
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 ReceivedGifts
impl PartialEq for ReceivedGifts
Source§fn eq(&self, other: &ReceivedGifts) -> bool
fn eq(&self, other: &ReceivedGifts) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReceivedGifts
impl Serialize for ReceivedGifts
impl StructuralPartialEq for ReceivedGifts
Auto Trait Implementations§
impl Freeze for ReceivedGifts
impl RefUnwindSafe for ReceivedGifts
impl Send for ReceivedGifts
impl Sync for ReceivedGifts
impl Unpin for ReceivedGifts
impl UnsafeUnpin for ReceivedGifts
impl UnwindSafe for ReceivedGifts
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