pub enum TransactionPartner {
User(Box<TransactionPartnerUser>),
Chat(Box<TransactionPartnerChat>),
AffiliateProgram(Box<TransactionPartnerAffiliateProgram>),
Fragment(Box<TransactionPartnerFragment>),
TelegramAds,
TelegramApi(Box<TransactionPartnerTelegramApi>),
Other,
}Expand description
The source or recipient of a Star transaction.
Variants§
User(Box<TransactionPartnerUser>)
A transaction with a user.
Chat(Box<TransactionPartnerChat>)
A transaction with a chat.
AffiliateProgram(Box<TransactionPartnerAffiliateProgram>)
The affiliate program that issued the commission.
Fragment(Box<TransactionPartnerFragment>)
A withdrawal transaction with Fragment.
TelegramAds
A withdrawal transaction to the Telegram Ads platform.
TelegramApi(Box<TransactionPartnerTelegramApi>)
A transaction for paid broadcasting.
Other
A transaction with an unknown source or recipient.
Trait Implementations§
Source§impl Clone for TransactionPartner
impl Clone for TransactionPartner
Source§fn clone(&self) -> TransactionPartner
fn clone(&self) -> TransactionPartner
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 TransactionPartner
impl Debug for TransactionPartner
Source§impl<'de> Deserialize<'de> for TransactionPartner
impl<'de> Deserialize<'de> for TransactionPartner
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
Auto Trait Implementations§
impl Freeze for TransactionPartner
impl RefUnwindSafe for TransactionPartner
impl Send for TransactionPartner
impl Sync for TransactionPartner
impl Unpin for TransactionPartner
impl UnsafeUnpin for TransactionPartner
impl UnwindSafe for TransactionPartner
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