pub struct MessageGiftedPremium {
pub gifter_user_id: i64,
pub currency: String,
pub amount: i64,
pub cryptocurrency: String,
pub cryptocurrency_amount: i64,
pub month_count: i32,
pub sticker: Option<Sticker>,
}
Expand description
Telegram Premium was gifted to the user
Fields§
§gifter_user_id: i64
The identifier of a user that gifted Telegram Premium; 0 if the gift was anonymous
currency: String
Currency for the paid amount
amount: i64
The paid amount, in the smallest units of the currency
cryptocurrency: String
Cryptocurrency used to pay for the gift; may be empty if none
cryptocurrency_amount: i64
The paid amount, in the smallest units of the cryptocurrency; 0 if none
month_count: i32
Number of months the Telegram Premium subscription will be active
sticker: Option<Sticker>
A sticker to be shown in the message; may be null if unknown
Trait Implementations§
Source§impl Clone for MessageGiftedPremium
impl Clone for MessageGiftedPremium
Source§fn clone(&self) -> MessageGiftedPremium
fn clone(&self) -> MessageGiftedPremium
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 Debug for MessageGiftedPremium
impl Debug for MessageGiftedPremium
Source§impl<'de> Deserialize<'de> for MessageGiftedPremium
impl<'de> Deserialize<'de> for MessageGiftedPremium
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 MessageGiftedPremium
impl PartialEq for MessageGiftedPremium
Source§impl Serialize for MessageGiftedPremium
impl Serialize for MessageGiftedPremium
impl StructuralPartialEq for MessageGiftedPremium
Auto Trait Implementations§
impl Freeze for MessageGiftedPremium
impl RefUnwindSafe for MessageGiftedPremium
impl Send for MessageGiftedPremium
impl Sync for MessageGiftedPremium
impl Unpin for MessageGiftedPremium
impl UnwindSafe for MessageGiftedPremium
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