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