pub struct TransactionPartnerAffiliateProgram {
pub sponsor_user: Option<User>,
pub commission_per_mille: i64,
}Expand description
The affiliate program that issued the commission received via this transaction.
Fields§
§sponsor_user: Option<User>The bot that sponsored the affiliate program, if applicable.
commission_per_mille: i64Stars received by the bot per 1000 Stars received by the program sponsor.
Trait Implementations§
Source§impl Clone for TransactionPartnerAffiliateProgram
impl Clone for TransactionPartnerAffiliateProgram
Source§fn clone(&self) -> TransactionPartnerAffiliateProgram
fn clone(&self) -> TransactionPartnerAffiliateProgram
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for TransactionPartnerAffiliateProgram
impl<'de> Deserialize<'de> for TransactionPartnerAffiliateProgram
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 TransactionPartnerAffiliateProgram
impl RefUnwindSafe for TransactionPartnerAffiliateProgram
impl Send for TransactionPartnerAffiliateProgram
impl Sync for TransactionPartnerAffiliateProgram
impl Unpin for TransactionPartnerAffiliateProgram
impl UnsafeUnpin for TransactionPartnerAffiliateProgram
impl UnwindSafe for TransactionPartnerAffiliateProgram
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