pub struct AffiliateProgramParameters {
pub commission_per_mille: i32,
pub month_count: i32,
}Expand description
Describes parameters of an affiliate program
Fields§
§commission_per_mille: i32The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner; getOption(“affiliate_program_commission_per_mille_min”)-getOption(“affiliate_program_commission_per_mille_max”)
month_count: i32Number of months the program will be active; 0-36. If 0, then the program is eternal
Trait Implementations§
Source§impl Clone for AffiliateProgramParameters
impl Clone for AffiliateProgramParameters
Source§fn clone(&self) -> AffiliateProgramParameters
fn clone(&self) -> AffiliateProgramParameters
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 AffiliateProgramParameters
impl Debug for AffiliateProgramParameters
Source§impl Default for AffiliateProgramParameters
impl Default for AffiliateProgramParameters
Source§fn default() -> AffiliateProgramParameters
fn default() -> AffiliateProgramParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AffiliateProgramParameters
impl<'de> Deserialize<'de> for AffiliateProgramParameters
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
impl StructuralPartialEq for AffiliateProgramParameters
Auto Trait Implementations§
impl Freeze for AffiliateProgramParameters
impl RefUnwindSafe for AffiliateProgramParameters
impl Send for AffiliateProgramParameters
impl Sync for AffiliateProgramParameters
impl Unpin for AffiliateProgramParameters
impl UnsafeUnpin for AffiliateProgramParameters
impl UnwindSafe for AffiliateProgramParameters
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