Enum tbot::types::inline_query::ChatKind[][src]

pub enum ChatKind {
    Sender,
    Private,
    Channel,
    Group,
    Supergroup,
}

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

impl ChatKind[src]

pub fn is_sender(&self) -> bool[src]

Returns true if self is of variant Sender.

pub fn is_private(&self) -> bool[src]

Returns true if self is of variant Private.

pub fn is_channel(&self) -> bool[src]

Returns true if self is of variant Channel.

pub fn is_group(&self) -> bool[src]

Returns true if self is of variant Group.

pub fn is_supergroup(&self) -> bool[src]

Returns true if self is of variant Supergroup.

Trait Implementations

impl Clone for ChatKind[src]

impl Debug for ChatKind[src]

impl<'de> Deserialize<'de> for ChatKind[src]

impl Hash for ChatKind[src]

impl PartialEq<ChatKind> for ChatKind[src]

impl Copy for ChatKind[src]

impl Eq for ChatKind[src]

impl StructuralEq for ChatKind[src]

impl StructuralPartialEq for ChatKind[src]

Auto Trait Implementations

impl RefUnwindSafe for ChatKind

impl Send for ChatKind

impl Sync for ChatKind

impl Unpin for ChatKind

impl UnwindSafe for ChatKind

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]