pub enum AffiliateType {
CurrentUser,
Bot(AffiliateTypeBot),
Channel(AffiliateTypeChannel),
}Variants§
CurrentUser
The affiliate is the current user
Bot(AffiliateTypeBot)
The affiliate is a bot owned by the current user
Channel(AffiliateTypeChannel)
The affiliate is a channel chat where the current user has can_post_messages administrator right
Trait Implementations§
Source§impl Clone for AffiliateType
impl Clone for AffiliateType
Source§fn clone(&self) -> AffiliateType
fn clone(&self) -> AffiliateType
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 AffiliateType
impl Debug for AffiliateType
Source§impl<'de> Deserialize<'de> for AffiliateType
impl<'de> Deserialize<'de> for AffiliateType
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 AffiliateType
impl PartialEq for AffiliateType
Source§fn eq(&self, other: &AffiliateType) -> bool
fn eq(&self, other: &AffiliateType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AffiliateType
impl Serialize for AffiliateType
impl StructuralPartialEq for AffiliateType
Auto Trait Implementations§
impl Freeze for AffiliateType
impl RefUnwindSafe for AffiliateType
impl Send for AffiliateType
impl Sync for AffiliateType
impl Unpin for AffiliateType
impl UnsafeUnpin for AffiliateType
impl UnwindSafe for AffiliateType
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