Enum rtdlib::types::InputInlineQueryResult [−][src]
pub enum InputInlineQueryResult {
Show 13 variants
AnimatedGif(InputInlineQueryResultAnimatedGif),
AnimatedMpeg4(InputInlineQueryResultAnimatedMpeg4),
Article(InputInlineQueryResultArticle),
Audio(InputInlineQueryResultAudio),
Contact(InputInlineQueryResultContact),
Document(InputInlineQueryResultDocument),
Game(InputInlineQueryResultGame),
Location(InputInlineQueryResultLocation),
Photo(InputInlineQueryResultPhoto),
Sticker(InputInlineQueryResultSticker),
Venue(InputInlineQueryResultVenue),
Video(InputInlineQueryResultVideo),
VoiceNote(InputInlineQueryResultVoiceNote),
// some variants omitted
}
Expand description
Represents a single result of an inline query; for bots only
Variants
Represents a link to an animated GIF
Tuple Fields of AnimatedGif
Represents a link to an animated (i.e. without sound) H.264/MPEG-4 AVC video
Tuple Fields of AnimatedMpeg4
Represents a link to an article or web page
Tuple Fields of Article
Represents a link to an MP3 audio file
Tuple Fields of Audio
Represents a user contact
Tuple Fields of Contact
Represents a link to a file
Tuple Fields of Document
Represents a game
Tuple Fields of Game
Represents a point on the map
Tuple Fields of Location
Represents link to a JPEG image
Tuple Fields of Photo
Represents a link to a WEBP or a TGS sticker
Tuple Fields of Sticker
Represents information about a venue
Tuple Fields of Venue
Represents a link to a page containing an embedded video player or a video file
Tuple Fields of Video
Represents a link to an opus-encoded audio file within an OGG container, single channel audio
Tuple Fields of VoiceNote
Implementations
pub fn on_animated_mpeg4<F: FnOnce(&InputInlineQueryResultAnimatedMpeg4)>(
&self,
fnc: F
) -> &Self
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<InputInlineQueryResult, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<InputInlineQueryResult, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for InputInlineQueryResult
impl Send for InputInlineQueryResult
impl Sync for InputInlineQueryResult
impl Unpin for InputInlineQueryResult
impl UnwindSafe for InputInlineQueryResult
Blanket Implementations
Mutably borrows from an owned value. Read more