pub struct ConnectedAffiliateProgram {
pub url: String,
pub bot_user_id: i64,
pub parameters: AffiliateProgramParameters,
pub connection_date: i32,
pub is_disconnected: bool,
pub user_count: i64,
pub revenue_star_count: i64,
}Expand description
Describes an affiliate program that was connected to an affiliate
Fields§
§url: StringThe link that can be used to refer users if the program is still active
bot_user_id: i64User identifier of the bot created the program
parameters: AffiliateProgramParametersThe parameters of the affiliate program
connection_date: i32Point in time (Unix timestamp) when the affiliate program was connected
is_disconnected: boolTrue, if the program was canceled by the bot, or disconnected by the chat owner and isn’t available anymore
user_count: i64The number of users that used the affiliate program
revenue_star_count: i64The number of Telegram Stars that were earned by the affiliate program
Trait Implementations§
Source§impl Clone for ConnectedAffiliateProgram
impl Clone for ConnectedAffiliateProgram
Source§fn clone(&self) -> ConnectedAffiliateProgram
fn clone(&self) -> ConnectedAffiliateProgram
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 ConnectedAffiliateProgram
impl Debug for ConnectedAffiliateProgram
Source§impl Default for ConnectedAffiliateProgram
impl Default for ConnectedAffiliateProgram
Source§fn default() -> ConnectedAffiliateProgram
fn default() -> ConnectedAffiliateProgram
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConnectedAffiliateProgram
impl<'de> Deserialize<'de> for ConnectedAffiliateProgram
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 ConnectedAffiliateProgram
Auto Trait Implementations§
impl Freeze for ConnectedAffiliateProgram
impl RefUnwindSafe for ConnectedAffiliateProgram
impl Send for ConnectedAffiliateProgram
impl Sync for ConnectedAffiliateProgram
impl Unpin for ConnectedAffiliateProgram
impl UnsafeUnpin for ConnectedAffiliateProgram
impl UnwindSafe for ConnectedAffiliateProgram
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