pub struct MessageGiftedStars {
pub gifter_user_id: i64,
pub receiver_user_id: i64,
pub currency: String,
pub amount: i64,
pub cryptocurrency: String,
pub cryptocurrency_amount: i64,
pub star_count: i64,
pub transaction_id: String,
pub sticker: Option<Sticker>,
}Expand description
Telegram Stars were gifted to a user
Fields§
§gifter_user_id: i64The identifier of a user who gifted Telegram Stars; 0 if the gift was anonymous or is outgoing
receiver_user_id: i64The identifier of a user who received Telegram Stars; 0 if the gift is incoming
currency: StringCurrency for the paid amount
amount: i64The paid amount, in the smallest units of the currency
cryptocurrency: StringCryptocurrency used to pay for the gift; may be empty if none
cryptocurrency_amount: i64The paid amount, in the smallest units of the cryptocurrency; 0 if none
star_count: i64Number of Telegram Stars that were gifted
transaction_id: StringIdentifier of the transaction for Telegram Stars purchase; for receiver only
sticker: Option<Sticker>A sticker to be shown in the message; may be null if unknown
Trait Implementations§
Source§impl Clone for MessageGiftedStars
impl Clone for MessageGiftedStars
Source§fn clone(&self) -> MessageGiftedStars
fn clone(&self) -> MessageGiftedStars
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 MessageGiftedStars
impl Debug for MessageGiftedStars
Source§impl<'de> Deserialize<'de> for MessageGiftedStars
impl<'de> Deserialize<'de> for MessageGiftedStars
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 MessageGiftedStars
impl PartialEq for MessageGiftedStars
Source§impl Serialize for MessageGiftedStars
impl Serialize for MessageGiftedStars
impl StructuralPartialEq for MessageGiftedStars
Auto Trait Implementations§
impl Freeze for MessageGiftedStars
impl RefUnwindSafe for MessageGiftedStars
impl Send for MessageGiftedStars
impl Sync for MessageGiftedStars
impl Unpin for MessageGiftedStars
impl UnsafeUnpin for MessageGiftedStars
impl UnwindSafe for MessageGiftedStars
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