pub struct MessageActionStarGiftPurchaseOfferDeclined {
pub expired: bool,
pub gift: StarGift,
pub price: StarsAmount,
}Expand description
messageActionStarGiftPurchaseOfferDeclined
Generated from:
messageActionStarGiftPurchaseOfferDeclined#73ada76b flags:# expired:flags.0?true gift:StarGift price:StarsAmount = MessageActionFields§
§expired: bool§gift: StarGift§price: StarsAmountTrait Implementations§
Source§impl Clone for MessageActionStarGiftPurchaseOfferDeclined
impl Clone for MessageActionStarGiftPurchaseOfferDeclined
Source§fn clone(&self) -> MessageActionStarGiftPurchaseOfferDeclined
fn clone(&self) -> MessageActionStarGiftPurchaseOfferDeclined
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 Deserializable for MessageActionStarGiftPurchaseOfferDeclined
impl Deserializable for MessageActionStarGiftPurchaseOfferDeclined
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<MessageActionStarGiftPurchaseOfferDeclined> for MessageAction
impl From<MessageActionStarGiftPurchaseOfferDeclined> for MessageAction
Source§fn from(x: MessageActionStarGiftPurchaseOfferDeclined) -> Self
fn from(x: MessageActionStarGiftPurchaseOfferDeclined) -> Self
Converts to this type from the input type.
Source§impl Identifiable for MessageActionStarGiftPurchaseOfferDeclined
impl Identifiable for MessageActionStarGiftPurchaseOfferDeclined
Source§const CONSTRUCTOR_ID: u32 = 0x73ada76b
const CONSTRUCTOR_ID: u32 = 0x73ada76b
The constructor ID as specified in the TL schema.
Source§impl PartialEq for MessageActionStarGiftPurchaseOfferDeclined
impl PartialEq for MessageActionStarGiftPurchaseOfferDeclined
Source§fn eq(&self, other: &MessageActionStarGiftPurchaseOfferDeclined) -> bool
fn eq(&self, other: &MessageActionStarGiftPurchaseOfferDeclined) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<MessageAction> for MessageActionStarGiftPurchaseOfferDeclined
impl TryFrom<MessageAction> for MessageActionStarGiftPurchaseOfferDeclined
Source§type Error = MessageAction
type Error = MessageAction
The type returned in the event of a conversion error.
impl StructuralPartialEq for MessageActionStarGiftPurchaseOfferDeclined
Auto Trait Implementations§
impl Freeze for MessageActionStarGiftPurchaseOfferDeclined
impl RefUnwindSafe for MessageActionStarGiftPurchaseOfferDeclined
impl Send for MessageActionStarGiftPurchaseOfferDeclined
impl Sync for MessageActionStarGiftPurchaseOfferDeclined
impl Unpin for MessageActionStarGiftPurchaseOfferDeclined
impl UnsafeUnpin for MessageActionStarGiftPurchaseOfferDeclined
impl UnwindSafe for MessageActionStarGiftPurchaseOfferDeclined
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