pub struct StarTransactionTypeChannelSubscriptionPurchase {
pub chat_id: i64,
pub subscription_period: i32,
}Expand description
The transaction is a purchase of a subscription to a channel chat by the current user; relevant for regular users only
Fields§
§chat_id: i64Identifier of the channel chat that created the subscription
subscription_period: i32The number of seconds between consecutive Telegram Star debitings
Trait Implementations§
Source§impl Clone for StarTransactionTypeChannelSubscriptionPurchase
impl Clone for StarTransactionTypeChannelSubscriptionPurchase
Source§fn clone(&self) -> StarTransactionTypeChannelSubscriptionPurchase
fn clone(&self) -> StarTransactionTypeChannelSubscriptionPurchase
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 StarTransactionTypeChannelSubscriptionPurchase
impl Default for StarTransactionTypeChannelSubscriptionPurchase
Source§fn default() -> StarTransactionTypeChannelSubscriptionPurchase
fn default() -> StarTransactionTypeChannelSubscriptionPurchase
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StarTransactionTypeChannelSubscriptionPurchase
impl<'de> Deserialize<'de> for StarTransactionTypeChannelSubscriptionPurchase
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 StarTransactionTypeChannelSubscriptionPurchase
impl PartialEq for StarTransactionTypeChannelSubscriptionPurchase
Source§fn eq(&self, other: &StarTransactionTypeChannelSubscriptionPurchase) -> bool
fn eq(&self, other: &StarTransactionTypeChannelSubscriptionPurchase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StarTransactionTypeChannelSubscriptionPurchase
Auto Trait Implementations§
impl Freeze for StarTransactionTypeChannelSubscriptionPurchase
impl RefUnwindSafe for StarTransactionTypeChannelSubscriptionPurchase
impl Send for StarTransactionTypeChannelSubscriptionPurchase
impl Sync for StarTransactionTypeChannelSubscriptionPurchase
impl Unpin for StarTransactionTypeChannelSubscriptionPurchase
impl UnsafeUnpin for StarTransactionTypeChannelSubscriptionPurchase
impl UnwindSafe for StarTransactionTypeChannelSubscriptionPurchase
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