pub struct StorePaymentPurposeStars {
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 StorePaymentPurposeStars
impl Clone for StorePaymentPurposeStars
Source§fn clone(&self) -> StorePaymentPurposeStars
fn clone(&self) -> StorePaymentPurposeStars
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 StorePaymentPurposeStars
impl Debug for StorePaymentPurposeStars
Source§impl Default for StorePaymentPurposeStars
impl Default for StorePaymentPurposeStars
Source§fn default() -> StorePaymentPurposeStars
fn default() -> StorePaymentPurposeStars
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StorePaymentPurposeStars
impl<'de> Deserialize<'de> for StorePaymentPurposeStars
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 StorePaymentPurposeStars
impl PartialEq for StorePaymentPurposeStars
Source§impl Serialize for StorePaymentPurposeStars
impl Serialize for StorePaymentPurposeStars
impl StructuralPartialEq for StorePaymentPurposeStars
Auto Trait Implementations§
impl Freeze for StorePaymentPurposeStars
impl RefUnwindSafe for StorePaymentPurposeStars
impl Send for StorePaymentPurposeStars
impl Sync for StorePaymentPurposeStars
impl Unpin for StorePaymentPurposeStars
impl UnsafeUnpin for StorePaymentPurposeStars
impl UnwindSafe for StorePaymentPurposeStars
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