Enum tg_flows::InlineQueryResult
source · pub enum InlineQueryResult {
Show 20 variants
CachedAudio(InlineQueryResultCachedAudio),
CachedDocument(InlineQueryResultCachedDocument),
CachedGif(InlineQueryResultCachedGif),
CachedMpeg4Gif(InlineQueryResultCachedMpeg4Gif),
CachedPhoto(InlineQueryResultCachedPhoto),
CachedSticker(InlineQueryResultCachedSticker),
CachedVideo(InlineQueryResultCachedVideo),
CachedVoice(InlineQueryResultCachedVoice),
Article(InlineQueryResultArticle),
Audio(InlineQueryResultAudio),
Contact(InlineQueryResultContact),
Game(InlineQueryResultGame),
Document(InlineQueryResultDocument),
Gif(InlineQueryResultGif),
Location(InlineQueryResultLocation),
Mpeg4Gif(InlineQueryResultMpeg4Gif),
Photo(InlineQueryResultPhoto),
Venue(InlineQueryResultVenue),
Video(InlineQueryResultVideo),
Voice(InlineQueryResultVoice),
}Expand description
This object represents one result of an inline query.
Variants§
CachedAudio(InlineQueryResultCachedAudio)
CachedDocument(InlineQueryResultCachedDocument)
CachedGif(InlineQueryResultCachedGif)
CachedMpeg4Gif(InlineQueryResultCachedMpeg4Gif)
CachedPhoto(InlineQueryResultCachedPhoto)
CachedSticker(InlineQueryResultCachedSticker)
CachedVideo(InlineQueryResultCachedVideo)
CachedVoice(InlineQueryResultCachedVoice)
Article(InlineQueryResultArticle)
Audio(InlineQueryResultAudio)
Contact(InlineQueryResultContact)
Game(InlineQueryResultGame)
Document(InlineQueryResultDocument)
Gif(InlineQueryResultGif)
Location(InlineQueryResultLocation)
Mpeg4Gif(InlineQueryResultMpeg4Gif)
Photo(InlineQueryResultPhoto)
Venue(InlineQueryResultVenue)
Video(InlineQueryResultVideo)
Voice(InlineQueryResultVoice)
Trait Implementations§
source§impl Clone for InlineQueryResult
impl Clone for InlineQueryResult
source§fn clone(&self) -> InlineQueryResult
fn clone(&self) -> InlineQueryResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for InlineQueryResult
impl Debug for InlineQueryResult
source§impl<'de> Deserialize<'de> for InlineQueryResult
impl<'de> Deserialize<'de> for InlineQueryResult
source§fn 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
source§impl From<InlineQueryResultArticle> for InlineQueryResult
impl From<InlineQueryResultArticle> for InlineQueryResult
source§fn from(original: InlineQueryResultArticle) -> InlineQueryResult
fn from(original: InlineQueryResultArticle) -> InlineQueryResult
Converts to this type from the input type.
source§impl From<InlineQueryResultAudio> for InlineQueryResult
impl From<InlineQueryResultAudio> for InlineQueryResult
source§fn from(original: InlineQueryResultAudio) -> InlineQueryResult
fn from(original: InlineQueryResultAudio) -> InlineQueryResult
Converts to this type from the input type.
source§impl From<InlineQueryResultCachedAudio> for InlineQueryResult
impl From<InlineQueryResultCachedAudio> for InlineQueryResult
source§fn from(original: InlineQueryResultCachedAudio) -> InlineQueryResult
fn from(original: InlineQueryResultCachedAudio) -> InlineQueryResult
Converts to this type from the input type.
source§impl From<InlineQueryResultCachedDocument> for InlineQueryResult
impl From<InlineQueryResultCachedDocument> for InlineQueryResult
source§fn from(original: InlineQueryResultCachedDocument) -> InlineQueryResult
fn from(original: InlineQueryResultCachedDocument) -> InlineQueryResult
Converts to this type from the input type.
source§impl From<InlineQueryResultCachedGif> for InlineQueryResult
impl From<InlineQueryResultCachedGif> for InlineQueryResult
source§fn from(original: InlineQueryResultCachedGif) -> InlineQueryResult
fn from(original: InlineQueryResultCachedGif) -> InlineQueryResult
Converts to this type from the input type.
source§impl From<InlineQueryResultCachedMpeg4Gif> for InlineQueryResult
impl From<InlineQueryResultCachedMpeg4Gif> for InlineQueryResult
source§fn from(original: InlineQueryResultCachedMpeg4Gif) -> InlineQueryResult
fn from(original: InlineQueryResultCachedMpeg4Gif) -> InlineQueryResult
Converts to this type from the input type.
source§impl From<InlineQueryResultCachedPhoto> for InlineQueryResult
impl From<InlineQueryResultCachedPhoto> for InlineQueryResult
source§fn from(original: InlineQueryResultCachedPhoto) -> InlineQueryResult
fn from(original: InlineQueryResultCachedPhoto) -> InlineQueryResult
Converts to this type from the input type.
source§impl From<InlineQueryResultCachedSticker> for InlineQueryResult
impl From<InlineQueryResultCachedSticker> for InlineQueryResult
source§fn from(original: InlineQueryResultCachedSticker) -> InlineQueryResult
fn from(original: InlineQueryResultCachedSticker) -> InlineQueryResult
Converts to this type from the input type.
source§impl From<InlineQueryResultCachedVideo> for InlineQueryResult
impl From<InlineQueryResultCachedVideo> for InlineQueryResult
source§fn from(original: InlineQueryResultCachedVideo) -> InlineQueryResult
fn from(original: InlineQueryResultCachedVideo) -> InlineQueryResult
Converts to this type from the input type.
source§impl From<InlineQueryResultCachedVoice> for InlineQueryResult
impl From<InlineQueryResultCachedVoice> for InlineQueryResult
source§fn from(original: InlineQueryResultCachedVoice) -> InlineQueryResult
fn from(original: InlineQueryResultCachedVoice) -> InlineQueryResult
Converts to this type from the input type.
source§impl From<InlineQueryResultContact> for InlineQueryResult
impl From<InlineQueryResultContact> for InlineQueryResult
source§fn from(original: InlineQueryResultContact) -> InlineQueryResult
fn from(original: InlineQueryResultContact) -> InlineQueryResult
Converts to this type from the input type.
source§impl From<InlineQueryResultDocument> for InlineQueryResult
impl From<InlineQueryResultDocument> for InlineQueryResult
source§fn from(original: InlineQueryResultDocument) -> InlineQueryResult
fn from(original: InlineQueryResultDocument) -> InlineQueryResult
Converts to this type from the input type.
source§impl From<InlineQueryResultGame> for InlineQueryResult
impl From<InlineQueryResultGame> for InlineQueryResult
source§fn from(original: InlineQueryResultGame) -> InlineQueryResult
fn from(original: InlineQueryResultGame) -> InlineQueryResult
Converts to this type from the input type.
source§impl From<InlineQueryResultGif> for InlineQueryResult
impl From<InlineQueryResultGif> for InlineQueryResult
source§fn from(original: InlineQueryResultGif) -> InlineQueryResult
fn from(original: InlineQueryResultGif) -> InlineQueryResult
Converts to this type from the input type.
source§impl From<InlineQueryResultLocation> for InlineQueryResult
impl From<InlineQueryResultLocation> for InlineQueryResult
source§fn from(original: InlineQueryResultLocation) -> InlineQueryResult
fn from(original: InlineQueryResultLocation) -> InlineQueryResult
Converts to this type from the input type.
source§impl From<InlineQueryResultMpeg4Gif> for InlineQueryResult
impl From<InlineQueryResultMpeg4Gif> for InlineQueryResult
source§fn from(original: InlineQueryResultMpeg4Gif) -> InlineQueryResult
fn from(original: InlineQueryResultMpeg4Gif) -> InlineQueryResult
Converts to this type from the input type.
source§impl From<InlineQueryResultPhoto> for InlineQueryResult
impl From<InlineQueryResultPhoto> for InlineQueryResult
source§fn from(original: InlineQueryResultPhoto) -> InlineQueryResult
fn from(original: InlineQueryResultPhoto) -> InlineQueryResult
Converts to this type from the input type.
source§impl From<InlineQueryResultVenue> for InlineQueryResult
impl From<InlineQueryResultVenue> for InlineQueryResult
source§fn from(original: InlineQueryResultVenue) -> InlineQueryResult
fn from(original: InlineQueryResultVenue) -> InlineQueryResult
Converts to this type from the input type.
source§impl From<InlineQueryResultVideo> for InlineQueryResult
impl From<InlineQueryResultVideo> for InlineQueryResult
source§fn from(original: InlineQueryResultVideo) -> InlineQueryResult
fn from(original: InlineQueryResultVideo) -> InlineQueryResult
Converts to this type from the input type.
source§impl From<InlineQueryResultVoice> for InlineQueryResult
impl From<InlineQueryResultVoice> for InlineQueryResult
source§fn from(original: InlineQueryResultVoice) -> InlineQueryResult
fn from(original: InlineQueryResultVoice) -> InlineQueryResult
Converts to this type from the input type.
source§impl PartialEq<InlineQueryResult> for InlineQueryResult
impl PartialEq<InlineQueryResult> for InlineQueryResult
source§fn eq(&self, other: &InlineQueryResult) -> bool
fn eq(&self, other: &InlineQueryResult) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for InlineQueryResult
impl Serialize for InlineQueryResult
impl StructuralPartialEq 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more