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 duplicate 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 for InlineQueryResult
impl PartialEq for InlineQueryResult
Source§impl Serialize for InlineQueryResult
impl Serialize for InlineQueryResult
impl StructuralPartialEq for InlineQueryResult
Auto Trait Implementations§
impl Freeze for InlineQueryResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more