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
sourceimpl AsRef<ChatSource> for ChatSource
impl AsRef<ChatSource> for ChatSource
sourcefn as_ref(&self) -> &ChatSource
fn as_ref(&self) -> &ChatSource
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for ChatSource
impl Clone for ChatSource
sourcefn clone(&self) -> ChatSource
fn clone(&self) -> ChatSource
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChatSource
impl Debug for ChatSource
sourceimpl Default for ChatSource
impl Default for ChatSource
sourceimpl<'de> Deserialize<'de> for ChatSource
impl<'de> Deserialize<'de> for ChatSource
sourcefn 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
sourceimpl Serialize for ChatSource
impl Serialize for ChatSource
Auto Trait Implementations
impl RefUnwindSafe for ChatSource
impl Send for ChatSource
impl Sync for ChatSource
impl Unpin for ChatSource
impl UnwindSafe for ChatSource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more