[−][src]Enum tbot::types::chat::Kind
Represents the kind of a chat.
Variants
The chat is private.
Fields of Private
The chat is a group.
Fields of Group
title: String
The title of the group.
description: Option<String>
The description of the group.
invite_link: Option<String>
The invite link of the group.
pinned_message: Option<Box<Message>>
The pinned message of the group.
permissions: Option<Permissions>
Default member permissions of the group. Returned only
in GetChat
.
The chat is a supergroup.
Fields of Supergroup
title: String
The title of the supergroup.
username: Option<String>
The username of the supergroup.
description: Option<String>
The description of the supergroup.
invite_link: Option<String>
The invite link of the supergroup.
pinned_message: Option<Box<Message>>
The pinned message of the supergroup.
sticker_set_name: Option<String>
The name of the sticker set of the supergroup.
can_set_sticker_set: Option<bool>
true
if the bot can set the sticker set of the supergroup.
permissions: Option<Permissions>
Default member permissions of the supergroup. Returned only
in GetChat
.
The chat is a channel.
Fields of Channel
Methods
impl Kind
[src]
pub fn is_private(&self) -> bool
[src]
Checks if self
is Private
.
pub fn is_group(&self) -> bool
[src]
Checks if self
is Group
.
pub fn is_supergroup(&self) -> bool
[src]
Checks if self
is Supergroup
.
pub fn is_channel(&self) -> bool
[src]
Checks if self
is Channel
.
Trait Implementations
Auto Trait Implementations
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
impl RefUnwindSafe for Kind
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,