pub struct AffiliateProgramInfo {
pub parameters: AffiliateProgramParameters,
pub end_date: i32,
pub daily_revenue_per_user_amount: StarAmount,
}Expand description
Contains information about an active affiliate program
Fields§
§parameters: AffiliateProgramParametersParameters of the affiliate program
end_date: i32Point in time (Unix timestamp) when the affiliate program will be closed; 0 if the affiliate program isn’t scheduled to be closed. If positive, then the program can’t be connected using connectAffiliateProgram, but active connections will work until the date
daily_revenue_per_user_amount: StarAmountThe amount of daily revenue per user in Telegram Stars of the bot that created the affiliate program
Trait Implementations§
Source§impl Clone for AffiliateProgramInfo
impl Clone for AffiliateProgramInfo
Source§fn clone(&self) -> AffiliateProgramInfo
fn clone(&self) -> AffiliateProgramInfo
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 AffiliateProgramInfo
impl Debug for AffiliateProgramInfo
Source§impl Default for AffiliateProgramInfo
impl Default for AffiliateProgramInfo
Source§fn default() -> AffiliateProgramInfo
fn default() -> AffiliateProgramInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AffiliateProgramInfo
impl<'de> Deserialize<'de> for AffiliateProgramInfo
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 AffiliateProgramInfo
impl PartialEq for AffiliateProgramInfo
Source§impl Serialize for AffiliateProgramInfo
impl Serialize for AffiliateProgramInfo
impl StructuralPartialEq for AffiliateProgramInfo
Auto Trait Implementations§
impl Freeze for AffiliateProgramInfo
impl RefUnwindSafe for AffiliateProgramInfo
impl Send for AffiliateProgramInfo
impl Sync for AffiliateProgramInfo
impl Unpin for AffiliateProgramInfo
impl UnsafeUnpin for AffiliateProgramInfo
impl UnwindSafe for AffiliateProgramInfo
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