pub struct PremiumStatePaymentOption {
pub payment_option: PremiumPaymentOption,
pub is_current: bool,
pub is_upgrade: bool,
pub last_transaction_id: String,
}Expand description
Describes an option for buying or upgrading Telegram Premium for self
Fields§
§payment_option: PremiumPaymentOptionInformation about the payment option
is_current: boolTrue, if this is the currently used Telegram Premium subscription option
is_upgrade: boolTrue, if the payment option can be used to upgrade the existing Telegram Premium subscription
last_transaction_id: StringIdentifier of the last in-store transaction for the currently used option
Trait Implementations§
Source§impl Clone for PremiumStatePaymentOption
impl Clone for PremiumStatePaymentOption
Source§fn clone(&self) -> PremiumStatePaymentOption
fn clone(&self) -> PremiumStatePaymentOption
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 PremiumStatePaymentOption
impl Debug for PremiumStatePaymentOption
Source§impl Default for PremiumStatePaymentOption
impl Default for PremiumStatePaymentOption
Source§fn default() -> PremiumStatePaymentOption
fn default() -> PremiumStatePaymentOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PremiumStatePaymentOption
impl<'de> Deserialize<'de> for PremiumStatePaymentOption
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
impl StructuralPartialEq for PremiumStatePaymentOption
Auto Trait Implementations§
impl Freeze for PremiumStatePaymentOption
impl RefUnwindSafe for PremiumStatePaymentOption
impl Send for PremiumStatePaymentOption
impl Sync for PremiumStatePaymentOption
impl Unpin for PremiumStatePaymentOption
impl UnwindSafe for PremiumStatePaymentOption
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