pub struct StorePaymentPurposePremiumSubscription {
pub is_restore: bool,
pub is_upgrade: bool,
}
Expand description
The user subscribed to Telegram Premium
Fields§
§is_restore: bool
Pass true if this is a restore of a Telegram Premium purchase; only for App Store
is_upgrade: bool
Pass true if this is an upgrade from a monthly subscription to early subscription; only for App Store
Trait Implementations§
Source§impl Clone for StorePaymentPurposePremiumSubscription
impl Clone for StorePaymentPurposePremiumSubscription
Source§fn clone(&self) -> StorePaymentPurposePremiumSubscription
fn clone(&self) -> StorePaymentPurposePremiumSubscription
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 Default for StorePaymentPurposePremiumSubscription
impl Default for StorePaymentPurposePremiumSubscription
Source§fn default() -> StorePaymentPurposePremiumSubscription
fn default() -> StorePaymentPurposePremiumSubscription
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StorePaymentPurposePremiumSubscription
impl<'de> Deserialize<'de> for StorePaymentPurposePremiumSubscription
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 StorePaymentPurposePremiumSubscription
impl PartialEq for StorePaymentPurposePremiumSubscription
Source§fn eq(&self, other: &StorePaymentPurposePremiumSubscription) -> bool
fn eq(&self, other: &StorePaymentPurposePremiumSubscription) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for StorePaymentPurposePremiumSubscription
Auto Trait Implementations§
impl Freeze for StorePaymentPurposePremiumSubscription
impl RefUnwindSafe for StorePaymentPurposePremiumSubscription
impl Send for StorePaymentPurposePremiumSubscription
impl Sync for StorePaymentPurposePremiumSubscription
impl Unpin for StorePaymentPurposePremiumSubscription
impl UnwindSafe for StorePaymentPurposePremiumSubscription
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