pub struct StorePaymentPurposePremiumGift {
pub currency: String,
pub amount: i64,
pub user_id: i64,
pub text: FormattedText,
}Expand description
The user gifting Telegram Premium to another user
Fields§
§currency: StringISO 4217 currency code of the payment currency
amount: i64Paid amount, in the smallest units of the currency
user_id: i64Identifiers of the user which will receive Telegram Premium
text: FormattedTextText to show along with the gift codes; 0-getOption(“gift_text_length_max”) characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed
Trait Implementations§
Source§impl Clone for StorePaymentPurposePremiumGift
impl Clone for StorePaymentPurposePremiumGift
Source§fn clone(&self) -> StorePaymentPurposePremiumGift
fn clone(&self) -> StorePaymentPurposePremiumGift
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 Default for StorePaymentPurposePremiumGift
impl Default for StorePaymentPurposePremiumGift
Source§fn default() -> StorePaymentPurposePremiumGift
fn default() -> StorePaymentPurposePremiumGift
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StorePaymentPurposePremiumGift
impl<'de> Deserialize<'de> for StorePaymentPurposePremiumGift
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 StorePaymentPurposePremiumGift
impl PartialEq for StorePaymentPurposePremiumGift
Source§fn eq(&self, other: &StorePaymentPurposePremiumGift) -> bool
fn eq(&self, other: &StorePaymentPurposePremiumGift) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StorePaymentPurposePremiumGift
Auto Trait Implementations§
impl Freeze for StorePaymentPurposePremiumGift
impl RefUnwindSafe for StorePaymentPurposePremiumGift
impl Send for StorePaymentPurposePremiumGift
impl Sync for StorePaymentPurposePremiumGift
impl Unpin for StorePaymentPurposePremiumGift
impl UnsafeUnpin for StorePaymentPurposePremiumGift
impl UnwindSafe for StorePaymentPurposePremiumGift
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