pub struct StorePaymentPurposeGiftedStars {
pub user_id: i64,
pub currency: String,
pub amount: i64,
pub star_count: i64,
}Expand description
The user buying Telegram Stars for other users
Fields§
§user_id: i64Identifier of the user to which Telegram Stars are gifted
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
Trait Implementations§
Source§impl Clone for StorePaymentPurposeGiftedStars
impl Clone for StorePaymentPurposeGiftedStars
Source§fn clone(&self) -> StorePaymentPurposeGiftedStars
fn clone(&self) -> StorePaymentPurposeGiftedStars
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 StorePaymentPurposeGiftedStars
impl Default for StorePaymentPurposeGiftedStars
Source§fn default() -> StorePaymentPurposeGiftedStars
fn default() -> StorePaymentPurposeGiftedStars
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StorePaymentPurposeGiftedStars
impl<'de> Deserialize<'de> for StorePaymentPurposeGiftedStars
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 StorePaymentPurposeGiftedStars
impl PartialEq for StorePaymentPurposeGiftedStars
Source§fn eq(&self, other: &StorePaymentPurposeGiftedStars) -> bool
fn eq(&self, other: &StorePaymentPurposeGiftedStars) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StorePaymentPurposeGiftedStars
Auto Trait Implementations§
impl Freeze for StorePaymentPurposeGiftedStars
impl RefUnwindSafe for StorePaymentPurposeGiftedStars
impl Send for StorePaymentPurposeGiftedStars
impl Sync for StorePaymentPurposeGiftedStars
impl Unpin for StorePaymentPurposeGiftedStars
impl UnsafeUnpin for StorePaymentPurposeGiftedStars
impl UnwindSafe for StorePaymentPurposeGiftedStars
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