pub enum ChatSource {
MtprotoProxy(ChatSourceMtprotoProxy),
PublicServiceAnnouncement(ChatSourcePublicServiceAnnouncement),
// some variants omitted
}
Expand description
Describes a reason why an external chat is shown in a chat list
Variants§
MtprotoProxy(ChatSourceMtprotoProxy)
The chat is sponsored by the user’s MTProxy server
PublicServiceAnnouncement(ChatSourcePublicServiceAnnouncement)
The chat contains a public service announcement
Implementations§
Trait Implementations§
Source§impl AsRef<ChatSource> for ChatSource
impl AsRef<ChatSource> for ChatSource
Source§fn as_ref(&self) -> &ChatSource
fn as_ref(&self) -> &ChatSource
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ChatSource
impl Clone for ChatSource
Source§fn clone(&self) -> ChatSource
fn clone(&self) -> ChatSource
Returns a copy 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 ChatSource
impl Debug for ChatSource
Source§impl Default for ChatSource
impl Default for ChatSource
Source§fn default() -> ChatSource
fn default() -> ChatSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatSource
impl<'de> Deserialize<'de> for ChatSource
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
Auto Trait Implementations§
impl Freeze for ChatSource
impl RefUnwindSafe for ChatSource
impl Send for ChatSource
impl Sync for ChatSource
impl Unpin for ChatSource
impl UnwindSafe for ChatSource
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