pub struct StarSubscription {
pub id: String,
pub chat_id: i64,
pub expiration_date: i32,
pub is_canceled: bool,
pub is_expiring: bool,
pub pricing: StarSubscriptionPricing,
pub type: StarSubscriptionType,
}Expand description
Contains information about subscription to a channel chat, a bot, or a business account that was paid in Telegram Stars
Fields§
§id: StringUnique identifier of the subscription
chat_id: i64Identifier of the chat that is subscribed
expiration_date: i32Point in time (Unix timestamp) when the subscription will expire or expired
is_canceled: boolTrue, if the subscription was canceled
is_expiring: boolTrue, if the subscription expires soon and there are no enough Telegram Stars on the user’s balance to extend it
pricing: StarSubscriptionPricingThe subscription plan
type: StarSubscriptionTypeType of the subscription
Trait Implementations§
Source§impl Clone for StarSubscription
impl Clone for StarSubscription
Source§fn clone(&self) -> StarSubscription
fn clone(&self) -> StarSubscription
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 StarSubscription
impl Debug for StarSubscription
Source§impl<'de> Deserialize<'de> for StarSubscription
impl<'de> Deserialize<'de> for StarSubscription
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 StarSubscription
impl PartialEq for StarSubscription
Source§impl Serialize for StarSubscription
impl Serialize for StarSubscription
impl StructuralPartialEq for StarSubscription
Auto Trait Implementations§
impl Freeze for StarSubscription
impl RefUnwindSafe for StarSubscription
impl Send for StarSubscription
impl Sync for StarSubscription
impl Unpin for StarSubscription
impl UnsafeUnpin for StarSubscription
impl UnwindSafe for StarSubscription
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