#[non_exhaustive]
pub enum Kind {
}
Expand description
Represents different kinds of inline_query::Result
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Article(Article)
An article.
Audio(Audio)
An audio.
Contact(Contact)
A contact.
Document(Document)
A document.
Game(Game)
A game.
Gif(Gif)
A GIF.
Location(Location)
A location.
Mpeg4Gif(Mpeg4Gif)
A MPEG-4 GIF.
Photo(Photo)
A photo.
Sticker(Sticker)
A sticker.
Venue(Venue)
A venue.
Video(Video)
A video.
Voice(Voice)
A voice.
Implementations§
source§impl Kind
impl Kind
sourcepub fn is_article(&self) -> bool
pub fn is_article(&self) -> bool
Returns true
if self
is of variant Article
.
sourcepub fn expect_article(self) -> Articlewhere
Self: Debug,
pub fn expect_article(self) -> Articlewhere
Self: Debug,
sourcepub fn article(self) -> Option<Article>
pub fn article(self) -> Option<Article>
Returns Some
if self
is of variant Article
, and None
otherwise.
sourcepub fn expect_audio(self) -> Audiowhere
Self: Debug,
pub fn expect_audio(self) -> Audiowhere
Self: Debug,
sourcepub fn audio(self) -> Option<Audio>
pub fn audio(self) -> Option<Audio>
Returns Some
if self
is of variant Audio
, and None
otherwise.
sourcepub fn is_contact(&self) -> bool
pub fn is_contact(&self) -> bool
Returns true
if self
is of variant Contact
.
sourcepub fn expect_contact(self) -> Contactwhere
Self: Debug,
pub fn expect_contact(self) -> Contactwhere
Self: Debug,
sourcepub fn contact(self) -> Option<Contact>
pub fn contact(self) -> Option<Contact>
Returns Some
if self
is of variant Contact
, and None
otherwise.
sourcepub fn is_document(&self) -> bool
pub fn is_document(&self) -> bool
Returns true
if self
is of variant Document
.
sourcepub fn expect_document(self) -> Documentwhere
Self: Debug,
pub fn expect_document(self) -> Documentwhere
Self: Debug,
sourcepub fn document(self) -> Option<Document>
pub fn document(self) -> Option<Document>
Returns Some
if self
is of variant Document
, and None
otherwise.
sourcepub fn expect_game(self) -> Gamewhere
Self: Debug,
pub fn expect_game(self) -> Gamewhere
Self: Debug,
sourcepub fn expect_gif(self) -> Gifwhere
Self: Debug,
pub fn expect_gif(self) -> Gifwhere
Self: Debug,
sourcepub fn is_location(&self) -> bool
pub fn is_location(&self) -> bool
Returns true
if self
is of variant Location
.
sourcepub fn expect_location(self) -> Locationwhere
Self: Debug,
pub fn expect_location(self) -> Locationwhere
Self: Debug,
sourcepub fn location(self) -> Option<Location>
pub fn location(self) -> Option<Location>
Returns Some
if self
is of variant Location
, and None
otherwise.
sourcepub fn is_mpeg4_gif(&self) -> bool
pub fn is_mpeg4_gif(&self) -> bool
Returns true
if self
is of variant Mpeg4Gif
.
sourcepub fn expect_mpeg4_gif(self) -> Mpeg4Gifwhere
Self: Debug,
pub fn expect_mpeg4_gif(self) -> Mpeg4Gifwhere
Self: Debug,
sourcepub fn mpeg4_gif(self) -> Option<Mpeg4Gif>
pub fn mpeg4_gif(self) -> Option<Mpeg4Gif>
Returns Some
if self
is of variant Mpeg4Gif
, and None
otherwise.
sourcepub fn expect_photo(self) -> Photowhere
Self: Debug,
pub fn expect_photo(self) -> Photowhere
Self: Debug,
sourcepub fn photo(self) -> Option<Photo>
pub fn photo(self) -> Option<Photo>
Returns Some
if self
is of variant Photo
, and None
otherwise.
sourcepub fn is_sticker(&self) -> bool
pub fn is_sticker(&self) -> bool
Returns true
if self
is of variant Sticker
.
sourcepub fn expect_sticker(self) -> Stickerwhere
Self: Debug,
pub fn expect_sticker(self) -> Stickerwhere
Self: Debug,
sourcepub fn sticker(self) -> Option<Sticker>
pub fn sticker(self) -> Option<Sticker>
Returns Some
if self
is of variant Sticker
, and None
otherwise.
sourcepub fn expect_venue(self) -> Venuewhere
Self: Debug,
pub fn expect_venue(self) -> Venuewhere
Self: Debug,
sourcepub fn venue(self) -> Option<Venue>
pub fn venue(self) -> Option<Venue>
Returns Some
if self
is of variant Venue
, and None
otherwise.
sourcepub fn expect_video(self) -> Videowhere
Self: Debug,
pub fn expect_video(self) -> Videowhere
Self: Debug,
sourcepub fn video(self) -> Option<Video>
pub fn video(self) -> Option<Video>
Returns Some
if self
is of variant Video
, and None
otherwise.