pub struct PremiumState {
pub state: FormattedText,
pub payment_options: Vec<PremiumStatePaymentOption>,
pub animations: Vec<PremiumFeaturePromotionAnimation>,
pub business_animations: Vec<BusinessFeaturePromotionAnimation>,
}
Expand description
Contains state of Telegram Premium subscription and promotion videos for Premium features
Fields§
§state: FormattedText
Text description of the state of the current Premium subscription; may be empty if the current user has no Telegram Premium subscription
payment_options: Vec<PremiumStatePaymentOption>
The list of available options for buying Telegram Premium
animations: Vec<PremiumFeaturePromotionAnimation>
The list of available promotion animations for Premium features
business_animations: Vec<BusinessFeaturePromotionAnimation>
The list of available promotion animations for Business features
Trait Implementations§
Source§impl Clone for PremiumState
impl Clone for PremiumState
Source§fn clone(&self) -> PremiumState
fn clone(&self) -> PremiumState
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 PremiumState
impl Debug for PremiumState
Source§impl Default for PremiumState
impl Default for PremiumState
Source§fn default() -> PremiumState
fn default() -> PremiumState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PremiumState
impl<'de> Deserialize<'de> for PremiumState
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 PremiumState
impl PartialEq for PremiumState
Source§impl Serialize for PremiumState
impl Serialize for PremiumState
impl StructuralPartialEq for PremiumState
Auto Trait Implementations§
impl Freeze for PremiumState
impl RefUnwindSafe for PremiumState
impl Send for PremiumState
impl Sync for PremiumState
impl Unpin for PremiumState
impl UnwindSafe for PremiumState
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