pub struct StarPaymentOption {
pub currency: String,
pub amount: i64,
pub star_count: i64,
pub store_product_id: String,
pub is_additional: bool,
}Expand description
Describes an option for buying Telegram Stars. Use telegramPaymentPurposeStars for out-of-store payments
Fields§
§currency: StringISO 4217 currency code for the payment
amount: i64The amount to pay, in the smallest units of the currency
star_count: i64Number of Telegram Stars that will be purchased
store_product_id: StringIdentifier of the store product associated with the option; may be empty if none
is_additional: boolTrue, if the option must be shown only in the full list of payment options
Trait Implementations§
Source§impl Clone for StarPaymentOption
impl Clone for StarPaymentOption
Source§fn clone(&self) -> StarPaymentOption
fn clone(&self) -> StarPaymentOption
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 StarPaymentOption
impl Debug for StarPaymentOption
Source§impl Default for StarPaymentOption
impl Default for StarPaymentOption
Source§fn default() -> StarPaymentOption
fn default() -> StarPaymentOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StarPaymentOption
impl<'de> Deserialize<'de> for StarPaymentOption
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 StarPaymentOption
impl PartialEq for StarPaymentOption
Source§impl Serialize for StarPaymentOption
impl Serialize for StarPaymentOption
impl StructuralPartialEq for StarPaymentOption
Auto Trait Implementations§
impl Freeze for StarPaymentOption
impl RefUnwindSafe for StarPaymentOption
impl Send for StarPaymentOption
impl Sync for StarPaymentOption
impl Unpin for StarPaymentOption
impl UnsafeUnpin for StarPaymentOption
impl UnwindSafe for StarPaymentOption
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