pub struct StarTransactionTypeGiftPurchase {
pub owner_id: MessageSender,
pub gift: Gift,
}Expand description
The transaction is a purchase of a regular gift; relevant for regular users and bots only
Fields§
§owner_id: MessageSenderIdentifier of the user or the channel that received the gift
gift: GiftThe gift
Trait Implementations§
Source§impl Clone for StarTransactionTypeGiftPurchase
impl Clone for StarTransactionTypeGiftPurchase
Source§fn clone(&self) -> StarTransactionTypeGiftPurchase
fn clone(&self) -> StarTransactionTypeGiftPurchase
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<'de> Deserialize<'de> for StarTransactionTypeGiftPurchase
impl<'de> Deserialize<'de> for StarTransactionTypeGiftPurchase
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 StarTransactionTypeGiftPurchase
impl PartialEq for StarTransactionTypeGiftPurchase
Source§fn eq(&self, other: &StarTransactionTypeGiftPurchase) -> bool
fn eq(&self, other: &StarTransactionTypeGiftPurchase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StarTransactionTypeGiftPurchase
Auto Trait Implementations§
impl Freeze for StarTransactionTypeGiftPurchase
impl RefUnwindSafe for StarTransactionTypeGiftPurchase
impl Send for StarTransactionTypeGiftPurchase
impl Sync for StarTransactionTypeGiftPurchase
impl Unpin for StarTransactionTypeGiftPurchase
impl UnsafeUnpin for StarTransactionTypeGiftPurchase
impl UnwindSafe for StarTransactionTypeGiftPurchase
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