[][src]Enum tbot::types::inline_query::result::Kind

#[non_exhaustive]
#[must_use]
pub enum Kind<'a> {
    Article(Article<'a>),
    Audio(Audio<'a>),
    Contact(Contact<'a>),
    Document(Document<'a>),
    Game(Game<'a>),
    Gif(Gif<'a>),
    Location(Location<'a>),
    Mpeg4Gif(Mpeg4Gif<'a>),
    Photo(Photo<'a>),
    Sticker(Sticker<'a>),
    Venue(Venue<'a>),
    Video(Video<'a>),
    Voice(Voice<'a>),
}

Represents different kinds of InlineQueryResult.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Article(Article<'a>)

An article.

Audio(Audio<'a>)

An audio.

Contact(Contact<'a>)

A contact.

Document(Document<'a>)

A document.

Game(Game<'a>)

A game.

Gif(Gif<'a>)

A GIF.

Location(Location<'a>)

A location.

Mpeg4Gif(Mpeg4Gif<'a>)

A MPEG-4 GIF.

Photo(Photo<'a>)

A photo.

Sticker(Sticker<'a>)

A sticker.

Venue(Venue<'a>)

A venue.

Video(Video<'a>)

A video.

Voice(Voice<'a>)

A voice.

Methods

impl<'_> Kind<'_>[src]

#[must_use] pub fn is_article(&self) -> bool[src]

Checks if self is Article.

#[must_use] pub fn is_audio(&self) -> bool[src]

Checks if self is Audio.

#[must_use] pub fn is_contact(&self) -> bool[src]

Checks if self is Contact.

#[must_use] pub fn is_document(&self) -> bool[src]

Checks if self is Document.

#[must_use] pub fn is_game(&self) -> bool[src]

Checks if self is Game.

#[must_use] pub fn is_gif(&self) -> bool[src]

Checks if self is Gif.

#[must_use] pub fn is_location(&self) -> bool[src]

Checks if self is Location.

#[must_use] pub fn is_mpeg4_gif(&self) -> bool[src]

Checks if self is Mpeg4Gif.

#[must_use] pub fn is_photo(&self) -> bool[src]

Checks if self is Photo.

#[must_use] pub fn is_sticker(&self) -> bool[src]

Checks if self is Sticker.

#[must_use] pub fn is_venue(&self) -> bool[src]

Checks if self is Venue.

#[must_use] pub fn is_video(&self) -> bool[src]

Checks if self is Video.

#[must_use] pub fn is_voice(&self) -> bool[src]

Checks if self is Voice.

Trait Implementations

impl<'a> Clone for Kind<'a>[src]

impl<'a> Copy for Kind<'a>[src]

impl<'a> Debug for Kind<'a>[src]

impl<'a> From<Article<'a>> for Kind<'a>[src]

impl<'a> From<Audio<'a>> for Kind<'a>[src]

impl<'a> From<Contact<'a>> for Kind<'a>[src]

impl<'a> From<Document<'a>> for Kind<'a>[src]

impl<'a> From<Game<'a>> for Kind<'a>[src]

impl<'a> From<Gif<'a>> for Kind<'a>[src]

impl<'a> From<Location<'a>> for Kind<'a>[src]

impl<'a> From<Mpeg4Gif<'a>> for Kind<'a>[src]

impl<'a> From<Photo<'a>> for Kind<'a>[src]

impl<'a> From<Sticker<'a>> for Kind<'a>[src]

impl<'a> From<Venue<'a>> for Kind<'a>[src]

impl<'a> From<Video<'a>> for Kind<'a>[src]

impl<'a> From<Voice<'a>> for Kind<'a>[src]

impl<'a> PartialEq<Kind<'a>> for Kind<'a>[src]

impl<'a> Serialize for Kind<'a>[src]

impl<'a> StructuralPartialEq for Kind<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Kind<'a>

impl<'a> Send for Kind<'a>

impl<'a> Sync for Kind<'a>

impl<'a> Unpin for Kind<'a>

impl<'a> UnwindSafe for Kind<'a>

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, U> Into<U> for T where
    U: From<T>, 
[src]

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.