pub struct TelegramPaymentPurposeStars {
pub currency: String,
pub amount: i64,
pub star_count: i64,
pub chat_id: i64,
}Expand description
The user buying Telegram Stars
Fields§
§currency: StringISO 4217 currency code of the payment currency
amount: i64Paid amount, in the smallest units of the currency
star_count: i64Number of bought Telegram Stars
chat_id: i64Identifier of the chat that is supposed to receive the Telegram Stars; pass 0 if none
Trait Implementations§
Source§impl Clone for TelegramPaymentPurposeStars
impl Clone for TelegramPaymentPurposeStars
Source§fn clone(&self) -> TelegramPaymentPurposeStars
fn clone(&self) -> TelegramPaymentPurposeStars
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 Debug for TelegramPaymentPurposeStars
impl Debug for TelegramPaymentPurposeStars
Source§impl Default for TelegramPaymentPurposeStars
impl Default for TelegramPaymentPurposeStars
Source§fn default() -> TelegramPaymentPurposeStars
fn default() -> TelegramPaymentPurposeStars
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TelegramPaymentPurposeStars
impl<'de> Deserialize<'de> for TelegramPaymentPurposeStars
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 TelegramPaymentPurposeStars
impl PartialEq for TelegramPaymentPurposeStars
Source§fn eq(&self, other: &TelegramPaymentPurposeStars) -> bool
fn eq(&self, other: &TelegramPaymentPurposeStars) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TelegramPaymentPurposeStars
Auto Trait Implementations§
impl Freeze for TelegramPaymentPurposeStars
impl RefUnwindSafe for TelegramPaymentPurposeStars
impl Send for TelegramPaymentPurposeStars
impl Sync for TelegramPaymentPurposeStars
impl Unpin for TelegramPaymentPurposeStars
impl UnsafeUnpin for TelegramPaymentPurposeStars
impl UnwindSafe for TelegramPaymentPurposeStars
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