pub struct AffiliateInfo {
pub commission_per_mille: i32,
pub affiliate_chat_id: i64,
pub star_amount: StarAmount,
}Expand description
Contains information about an affiliate that received commission from a Telegram Star transaction
Fields§
§commission_per_mille: i32The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner
affiliate_chat_id: i64Identifier of the chat which received the commission
star_amount: StarAmountThe Telegram Star amount that was received by the affiliate; can be negative for refunds
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 Default for AffiliateInfo
impl Default for AffiliateInfo
Source§fn default() -> AffiliateInfo
fn default() -> AffiliateInfo
Returns the “default value” for a type. Read more
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
Source§impl PartialEq for AffiliateInfo
impl PartialEq for AffiliateInfo
Source§fn eq(&self, other: &AffiliateInfo) -> bool
fn eq(&self, other: &AffiliateInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AffiliateInfo
impl Serialize for AffiliateInfo
impl StructuralPartialEq for AffiliateInfo
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