Enum rtdlib::types::InputInlineQueryResult[][src]

Expand description

Represents a single result of an inline query; for bots only

Variants

AnimatedGif

Represents a link to an animated GIF

Tuple Fields of AnimatedGif

0: InputInlineQueryResultAnimatedGif
AnimatedMpeg4

Represents a link to an animated (i.e. without sound) H.264/MPEG-4 AVC video

Tuple Fields of AnimatedMpeg4

0: InputInlineQueryResultAnimatedMpeg4
Article

Represents a link to an article or web page

Tuple Fields of Article

0: InputInlineQueryResultArticle
Audio

Represents a link to an MP3 audio file

Tuple Fields of Audio

0: InputInlineQueryResultAudio
Contact

Represents a user contact

Tuple Fields of Contact

0: InputInlineQueryResultContact
Document

Represents a link to a file

Tuple Fields of Document

0: InputInlineQueryResultDocument
Game

Represents a game

Tuple Fields of Game

0: InputInlineQueryResultGame
Location

Represents a point on the map

Tuple Fields of Location

0: InputInlineQueryResultLocation
Photo

Represents link to a JPEG image

Tuple Fields of Photo

0: InputInlineQueryResultPhoto
Sticker

Represents a link to a WEBP or a TGS sticker

Tuple Fields of Sticker

0: InputInlineQueryResultSticker
Venue

Represents information about a venue

Tuple Fields of Venue

0: InputInlineQueryResultVenue
Video

Represents a link to a page containing an embedded video player or a video file

Tuple Fields of Video

0: InputInlineQueryResultVideo
VoiceNote

Represents a link to an opus-encoded audio file within an OGG container, single channel audio

Tuple Fields of VoiceNote

0: InputInlineQueryResultVoiceNote

Implementations

pub fn is_article(&self) -> bool

pub fn on_article<F: FnOnce(&InputInlineQueryResultArticle)>(
    &self,
    fnc: F
) -> &Self

pub fn as_article(&self) -> Option<&InputInlineQueryResultArticle>

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Return td type to json string

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.