Enum rust_tdlib::types::ChatSource
source · 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