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<InlineQueryResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InlineQueryResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<InlineQueryResult> for InlineQueryResult
impl From<InlineQueryResult> for InlineQueryResult
Source§fn from(raw: InlineQueryResult) -> InlineQueryResult
fn from(raw: InlineQueryResult) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultArticle> for InlineQueryResult
impl From<InlineQueryResultArticle> for InlineQueryResult
Source§fn from(value: InlineQueryResultArticle) -> InlineQueryResult
fn from(value: InlineQueryResultArticle) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultAudio> for InlineQueryResult
impl From<InlineQueryResultAudio> for InlineQueryResult
Source§fn from(value: InlineQueryResultAudio) -> InlineQueryResult
fn from(value: InlineQueryResultAudio) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultCachedAudio> for InlineQueryResult
impl From<InlineQueryResultCachedAudio> for InlineQueryResult
Source§fn from(value: InlineQueryResultCachedAudio) -> InlineQueryResult
fn from(value: InlineQueryResultCachedAudio) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultCachedDocument> for InlineQueryResult
impl From<InlineQueryResultCachedDocument> for InlineQueryResult
Source§fn from(value: InlineQueryResultCachedDocument) -> InlineQueryResult
fn from(value: InlineQueryResultCachedDocument) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultCachedGif> for InlineQueryResult
impl From<InlineQueryResultCachedGif> for InlineQueryResult
Source§fn from(value: InlineQueryResultCachedGif) -> InlineQueryResult
fn from(value: InlineQueryResultCachedGif) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultCachedMpeg4Gif> for InlineQueryResult
impl From<InlineQueryResultCachedMpeg4Gif> for InlineQueryResult
Source§fn from(value: InlineQueryResultCachedMpeg4Gif) -> InlineQueryResult
fn from(value: InlineQueryResultCachedMpeg4Gif) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultCachedPhoto> for InlineQueryResult
impl From<InlineQueryResultCachedPhoto> for InlineQueryResult
Source§fn from(value: InlineQueryResultCachedPhoto) -> InlineQueryResult
fn from(value: InlineQueryResultCachedPhoto) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultCachedSticker> for InlineQueryResult
impl From<InlineQueryResultCachedSticker> for InlineQueryResult
Source§fn from(value: InlineQueryResultCachedSticker) -> InlineQueryResult
fn from(value: InlineQueryResultCachedSticker) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultCachedVideo> for InlineQueryResult
impl From<InlineQueryResultCachedVideo> for InlineQueryResult
Source§fn from(value: InlineQueryResultCachedVideo) -> InlineQueryResult
fn from(value: InlineQueryResultCachedVideo) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultCachedVoice> for InlineQueryResult
impl From<InlineQueryResultCachedVoice> for InlineQueryResult
Source§fn from(value: InlineQueryResultCachedVoice) -> InlineQueryResult
fn from(value: InlineQueryResultCachedVoice) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultContact> for InlineQueryResult
impl From<InlineQueryResultContact> for InlineQueryResult
Source§fn from(value: InlineQueryResultContact) -> InlineQueryResult
fn from(value: InlineQueryResultContact) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultDocument> for InlineQueryResult
impl From<InlineQueryResultDocument> for InlineQueryResult
Source§fn from(value: InlineQueryResultDocument) -> InlineQueryResult
fn from(value: InlineQueryResultDocument) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultGame> for InlineQueryResult
impl From<InlineQueryResultGame> for InlineQueryResult
Source§fn from(value: InlineQueryResultGame) -> InlineQueryResult
fn from(value: InlineQueryResultGame) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultGif> for InlineQueryResult
impl From<InlineQueryResultGif> for InlineQueryResult
Source§fn from(value: InlineQueryResultGif) -> InlineQueryResult
fn from(value: InlineQueryResultGif) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultLocation> for InlineQueryResult
impl From<InlineQueryResultLocation> for InlineQueryResult
Source§fn from(value: InlineQueryResultLocation) -> InlineQueryResult
fn from(value: InlineQueryResultLocation) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultMpeg4Gif> for InlineQueryResult
impl From<InlineQueryResultMpeg4Gif> for InlineQueryResult
Source§fn from(value: InlineQueryResultMpeg4Gif) -> InlineQueryResult
fn from(value: InlineQueryResultMpeg4Gif) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultPhoto> for InlineQueryResult
impl From<InlineQueryResultPhoto> for InlineQueryResult
Source§fn from(value: InlineQueryResultPhoto) -> InlineQueryResult
fn from(value: InlineQueryResultPhoto) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultVenue> for InlineQueryResult
impl From<InlineQueryResultVenue> for InlineQueryResult
Source§fn from(value: InlineQueryResultVenue) -> InlineQueryResult
fn from(value: InlineQueryResultVenue) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultVideo> for InlineQueryResult
impl From<InlineQueryResultVideo> for InlineQueryResult
Source§fn from(value: InlineQueryResultVideo) -> InlineQueryResult
fn from(value: InlineQueryResultVideo) -> InlineQueryResult
Converts to this type from the input type.
Source§impl From<InlineQueryResultVoice> for InlineQueryResult
impl From<InlineQueryResultVoice> for InlineQueryResult
Source§fn from(value: InlineQueryResultVoice) -> InlineQueryResult
fn from(value: 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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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