Enum tbot::types::inline_query::ChatKind
source · pub enum ChatKind {
Sender,
Private,
Channel,
Group,
Supergroup,
}
Expand description
Represents the kind of a chat.
Variants§
Sender
The chat is private.
Private
The chat is private.
Channel
The chat is a channel.
Group
The chat is a group.
Supergroup
The chat is a supergroup.
Implementations§
source§impl ChatKind
impl ChatKind
sourcepub fn is_private(&self) -> bool
pub fn is_private(&self) -> bool
Returns true
if self
is of variant Private
.
sourcepub fn is_channel(&self) -> bool
pub fn is_channel(&self) -> bool
Returns true
if self
is of variant Channel
.
sourcepub fn is_supergroup(&self) -> bool
pub fn is_supergroup(&self) -> bool
Returns true
if self
is of variant Supergroup
.
Trait Implementations§
source§impl<'de> Deserialize<'de> for ChatKind
impl<'de> Deserialize<'de> for ChatKind
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