pub struct StorePaymentPurposeGiftedPremium {
pub user_id: i64,
pub currency: String,
pub amount: i64,
}Expand description
The user gifting Telegram Premium to another user
Fields§
§user_id: i64Identifier of the user to which Premium was gifted
currency: StringISO 4217 currency code of the payment currency
amount: i64Paid amount, in the smallest units of the currency
Trait Implementations§
Source§impl Clone for StorePaymentPurposeGiftedPremium
impl Clone for StorePaymentPurposeGiftedPremium
Source§fn clone(&self) -> StorePaymentPurposeGiftedPremium
fn clone(&self) -> StorePaymentPurposeGiftedPremium
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 StorePaymentPurposeGiftedPremium
impl Default for StorePaymentPurposeGiftedPremium
Source§fn default() -> StorePaymentPurposeGiftedPremium
fn default() -> StorePaymentPurposeGiftedPremium
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StorePaymentPurposeGiftedPremium
impl<'de> Deserialize<'de> for StorePaymentPurposeGiftedPremium
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 StorePaymentPurposeGiftedPremium
impl PartialEq for StorePaymentPurposeGiftedPremium
Source§fn eq(&self, other: &StorePaymentPurposeGiftedPremium) -> bool
fn eq(&self, other: &StorePaymentPurposeGiftedPremium) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StorePaymentPurposeGiftedPremium
Auto Trait Implementations§
impl Freeze for StorePaymentPurposeGiftedPremium
impl RefUnwindSafe for StorePaymentPurposeGiftedPremium
impl Send for StorePaymentPurposeGiftedPremium
impl Sync for StorePaymentPurposeGiftedPremium
impl Unpin for StorePaymentPurposeGiftedPremium
impl UnwindSafe for StorePaymentPurposeGiftedPremium
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