pub struct AffiliateInfo {
pub affiliate_user: Option<User>,
pub affiliate_chat: Option<Chat>,
pub commission_per_mille: i64,
pub amount: i64,
pub nanostar_amount: Option<i32>,
}Expand description
Information about the affiliate that received a commission via this transaction.
Fields§
§affiliate_user: Option<User>The bot or user that received the affiliate commission, if applicable.
affiliate_chat: Option<Chat>The chat that received the affiliate commission, if applicable.
commission_per_mille: i64Stars received per 1000 Stars received by the affiliate program sponsor.
amount: i64Integer amount of Stars received from the transaction; can be negative for refunds.
nanostar_amount: Option<i32>Fractional nanostar amount; from -999,999,999 to 999,999,999.
Trait Implementations§
Source§impl Clone for AffiliateInfo
impl Clone for AffiliateInfo
Source§fn clone(&self) -> AffiliateInfo
fn clone(&self) -> AffiliateInfo
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 Debug for AffiliateInfo
impl Debug for AffiliateInfo
Source§impl<'de> Deserialize<'de> for AffiliateInfo
impl<'de> Deserialize<'de> for AffiliateInfo
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 AffiliateInfo
impl RefUnwindSafe for AffiliateInfo
impl Send for AffiliateInfo
impl Sync for AffiliateInfo
impl Unpin for AffiliateInfo
impl UnsafeUnpin for AffiliateInfo
impl UnwindSafe for AffiliateInfo
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