Enum rust_tdlib::types::InlineQueryResult
source · [−]pub enum InlineQueryResult {
Animation(InlineQueryResultAnimation),
Article(InlineQueryResultArticle),
Audio(InlineQueryResultAudio),
Contact(InlineQueryResultContact),
Document(InlineQueryResultDocument),
Game(Box<InlineQueryResultGame>),
Location(InlineQueryResultLocation),
Photo(InlineQueryResultPhoto),
Sticker(InlineQueryResultSticker),
Venue(InlineQueryResultVenue),
Video(Box<InlineQueryResultVideo>),
VoiceNote(InlineQueryResultVoiceNote),
// some variants omitted
}
Expand description
Represents a single result of an inline query
Variants
Animation(InlineQueryResultAnimation)
Represents an animation file
Article(InlineQueryResultArticle)
Represents a link to an article or web page
Audio(InlineQueryResultAudio)
Represents an audio file
Contact(InlineQueryResultContact)
Represents a user contact
Document(InlineQueryResultDocument)
Represents a document
Game(Box<InlineQueryResultGame>)
Represents information about a game
Location(InlineQueryResultLocation)
Represents a point on the map
Photo(InlineQueryResultPhoto)
Represents a photo
Sticker(InlineQueryResultSticker)
Represents a sticker
Venue(InlineQueryResultVenue)
Represents information about a venue
Video(Box<InlineQueryResultVideo>)
Represents a video
VoiceNote(InlineQueryResultVoiceNote)
Represents a voice note
Implementations
Trait Implementations
sourceimpl AsRef<InlineQueryResult> for InlineQueryResult
impl AsRef<InlineQueryResult> for InlineQueryResult
sourcefn as_ref(&self) -> &InlineQueryResult
fn as_ref(&self) -> &InlineQueryResult
Converts this type into a shared reference of the (usually inferred) input type.
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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InlineQueryResult
impl Debug for InlineQueryResult
sourceimpl Default for InlineQueryResult
impl Default 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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