Enum rust_tdlib::types::PublicChatType
source · [−]pub enum PublicChatType {
HasUsername(PublicChatTypeHasUsername),
IsLocationBased(PublicChatTypeIsLocationBased),
// some variants omitted
}Expand description
Describes a type of public chats
Variants
HasUsername(PublicChatTypeHasUsername)
The chat is public, because it has username
IsLocationBased(PublicChatTypeIsLocationBased)
The chat is public, because it is a location-based supergroup
Implementations
Trait Implementations
sourceimpl AsRef<PublicChatType> for PublicChatType
impl AsRef<PublicChatType> for PublicChatType
sourcefn as_ref(&self) -> &PublicChatType
fn as_ref(&self) -> &PublicChatType
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for PublicChatType
impl Clone for PublicChatType
sourcefn clone(&self) -> PublicChatType
fn clone(&self) -> PublicChatType
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 PublicChatType
impl Debug for PublicChatType
sourceimpl Default for PublicChatType
impl Default for PublicChatType
sourceimpl<'de> Deserialize<'de> for PublicChatType
impl<'de> Deserialize<'de> for PublicChatType
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 PublicChatType
impl Serialize for PublicChatType
Auto Trait Implementations
impl RefUnwindSafe for PublicChatType
impl Send for PublicChatType
impl Sync for PublicChatType
impl Unpin for PublicChatType
impl UnwindSafe for PublicChatType
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