Enum telegram_bot_api::types::InlineQueryResult
source · [−]pub enum InlineQueryResult {
Show 20 variants
InlineQueryResultCachedAudio(InlineQueryResultCachedAudio),
InlineQueryResultCachedDocument(InlineQueryResultCachedDocument),
InlineQueryResultCachedGif(InlineQueryResultCachedGif),
InlineQueryResultCachedMpeg4Gif(InlineQueryResultCachedMpeg4Gif),
InlineQueryResultCachedPhoto(InlineQueryResultCachedPhoto),
InlineQueryResultCachedSticker(InlineQueryResultCachedSticker),
InlineQueryResultCachedVideo(InlineQueryResultCachedVideo),
InlineQueryResultCachedVoice(InlineQueryResultCachedVoice),
InlineQueryResultArticle(InlineQueryResultArticle),
InlineQueryResultAudio(InlineQueryResultAudio),
InlineQueryResultContact(InlineQueryResultContact),
InlineQueryResultGame(InlineQueryResultGame),
InlineQueryResultDocument(InlineQueryResultDocument),
InlineQueryResultGif(InlineQueryResultGif),
InlineQueryResultLocation(InlineQueryResultLocation),
InlineQueryResultMpeg4Gif(InlineQueryResultMpeg4Gif),
InlineQueryResultPhoto(InlineQueryResultPhoto),
InlineQueryResultVenue(InlineQueryResultVenue),
InlineQueryResultVideo(InlineQueryResultVideo),
InlineQueryResultVoice(InlineQueryResultVoice),
}
Expand description
This object represents one result of an inline query. Telegram clients currently support results of the following 20 types:
InlineQueryResultCachedAudio
InlineQueryResultCachedDocument
InlineQueryResultCachedGif
InlineQueryResultCachedMpeg4Gif
InlineQueryResultCachedPhoto
InlineQueryResultCachedSticker
InlineQueryResultCachedVideo
InlineQueryResultCachedVoice
InlineQueryResultArticle
InlineQueryResultAudio
InlineQueryResultContact
InlineQueryResultGame
InlineQueryResultDocument
InlineQueryResultGif
InlineQueryResultLocation
InlineQueryResultMpeg4Gif
InlineQueryResultPhoto
InlineQueryResultVenue
InlineQueryResultVideo
InlineQueryResultVoice
Variants
InlineQueryResultCachedAudio(InlineQueryResultCachedAudio)
InlineQueryResultCachedDocument(InlineQueryResultCachedDocument)
InlineQueryResultCachedGif(InlineQueryResultCachedGif)
InlineQueryResultCachedMpeg4Gif(InlineQueryResultCachedMpeg4Gif)
InlineQueryResultCachedPhoto(InlineQueryResultCachedPhoto)
InlineQueryResultCachedSticker(InlineQueryResultCachedSticker)
InlineQueryResultCachedVideo(InlineQueryResultCachedVideo)
InlineQueryResultCachedVoice(InlineQueryResultCachedVoice)
InlineQueryResultArticle(InlineQueryResultArticle)
InlineQueryResultAudio(InlineQueryResultAudio)
InlineQueryResultContact(InlineQueryResultContact)
InlineQueryResultGame(InlineQueryResultGame)
InlineQueryResultDocument(InlineQueryResultDocument)
InlineQueryResultGif(InlineQueryResultGif)
InlineQueryResultLocation(InlineQueryResultLocation)
InlineQueryResultMpeg4Gif(InlineQueryResultMpeg4Gif)
InlineQueryResultPhoto(InlineQueryResultPhoto)
InlineQueryResultVenue(InlineQueryResultVenue)
InlineQueryResultVideo(InlineQueryResultVideo)
InlineQueryResultVoice(InlineQueryResultVoice)
Trait Implementations
sourceimpl Clone for InlineQueryResult
impl Clone for InlineQueryResult
sourcefn clone(&self) -> InlineQueryResult
fn clone(&self) -> InlineQueryResult
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InlineQueryResult
impl Debug for InlineQueryResult
sourceimpl<'de> Deserialize<'de> for InlineQueryResult
impl<'de> Deserialize<'de> for InlineQueryResult
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for InlineQueryResult
impl Serialize for InlineQueryResult
Auto Trait Implementations
impl RefUnwindSafe for InlineQueryResult
impl Send for InlineQueryResult
impl Sync for InlineQueryResult
impl Unpin for InlineQueryResult
impl UnwindSafe for InlineQueryResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more