pub struct PushMessageContentUpgradedGift {
pub is_upgrade: bool,
pub is_prepaid_upgrade: bool,
}Expand description
A message with an upgraded gift
Fields§
§is_upgrade: boolTrue, if the gift was obtained by upgrading of a previously received gift; otherwise, if is_prepaid_upgrade == false, then this is a transferred or resold gift
is_prepaid_upgrade: boolTrue, if the message is about completion of prepaid upgrade of the gift instead of actual receiving of a new gift
Trait Implementations§
Source§impl Clone for PushMessageContentUpgradedGift
impl Clone for PushMessageContentUpgradedGift
Source§fn clone(&self) -> PushMessageContentUpgradedGift
fn clone(&self) -> PushMessageContentUpgradedGift
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 Default for PushMessageContentUpgradedGift
impl Default for PushMessageContentUpgradedGift
Source§fn default() -> PushMessageContentUpgradedGift
fn default() -> PushMessageContentUpgradedGift
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PushMessageContentUpgradedGift
impl<'de> Deserialize<'de> for PushMessageContentUpgradedGift
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 PushMessageContentUpgradedGift
impl PartialEq for PushMessageContentUpgradedGift
Source§fn eq(&self, other: &PushMessageContentUpgradedGift) -> bool
fn eq(&self, other: &PushMessageContentUpgradedGift) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PushMessageContentUpgradedGift
Auto Trait Implementations§
impl Freeze for PushMessageContentUpgradedGift
impl RefUnwindSafe for PushMessageContentUpgradedGift
impl Send for PushMessageContentUpgradedGift
impl Sync for PushMessageContentUpgradedGift
impl Unpin for PushMessageContentUpgradedGift
impl UnsafeUnpin for PushMessageContentUpgradedGift
impl UnwindSafe for PushMessageContentUpgradedGift
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