Enum rtdlib::types::PublicChatType [−][src]
pub enum PublicChatType {
HasUsername(PublicChatTypeHasUsername),
IsLocationBased(PublicChatTypeIsLocationBased),
// some variants omitted
}
Expand description
Describes a type of public chats
Variants
The chat is public, because it has username
Tuple Fields of HasUsername
The chat is public, because it is a location-based supergroup
Tuple Fields of IsLocationBased
Implementations
pub fn on_is_location_based<F: FnOnce(&PublicChatTypeIsLocationBased)>(
&self,
fnc: F
) -> &Self
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<PublicChatType, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<PublicChatType, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more