[−][src]Enum tbot::types::inline_query::result::Kind
Represents different kinds of InlineQueryResult
.
Variants
Article(Article<'a>)
An article.
Audio(Audio<'a>)
An audio.
Contact(Contact<'a>)
A contact.
Document(Document<'a>)
A document.
Game(Game<'a>)
A game.
Gif(Gif<'a>)
A GIF.
Location(Location<'a>)
A location.
Mpeg4Gif(Mpeg4Gif<'a>)
A MPEG-4 GIF.
Photo(Photo<'a>)
A photo.
Sticker(Sticker<'a>)
A sticker.
Venue(Venue<'a>)
A venue.
Video(Video<'a>)
A video.
Voice(Voice<'a>)
A voice.
Methods
impl<'_> Kind<'_>
[src]
pub fn is_article(&self) -> bool
[src]
Checks if self
is Article
.
pub fn is_audio(&self) -> bool
[src]
Checks if self
is Audio
.
pub fn is_contact(&self) -> bool
[src]
Checks if self
is Contact
.
pub fn is_document(&self) -> bool
[src]
Checks if self
is Document
.
pub fn is_game(&self) -> bool
[src]
Checks if self
is Game
.
pub fn is_gif(&self) -> bool
[src]
Checks if self
is Gif
.
pub fn is_location(&self) -> bool
[src]
Checks if self
is Location
.
pub fn is_mpeg4_gif(&self) -> bool
[src]
Checks if self
is Mpeg4Gif``.
pub fn is_photo(&self) -> bool
[src]
Checks if self
is ``.
pub fn is_sticker(&self) -> bool
[src]
Checks if self
is Sticker
.
pub fn is_venue(&self) -> bool
[src]
Checks if self
is Venue
.
pub fn is_video(&self) -> bool
[src]
Checks if self
is Video
.
pub fn is_voice(&self) -> bool
[src]
Checks if self
is Voice
.
Trait Implementations
impl<'a> PartialEq<Kind<'a>> for Kind<'a>
[src]
impl<'a> Copy for Kind<'a>
[src]
impl<'a> Clone for Kind<'a>
[src]
fn clone(&self) -> Kind<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> From<Audio<'a>> for Kind<'a>
[src]
impl<'a> From<Document<'a>> for Kind<'a>
[src]
impl<'a> From<Gif<'a>> for Kind<'a>
[src]
impl<'a> From<Mpeg4Gif<'a>> for Kind<'a>
[src]
impl<'a> From<Photo<'a>> for Kind<'a>
[src]
impl<'a> From<Sticker<'a>> for Kind<'a>
[src]
impl<'a> From<Video<'a>> for Kind<'a>
[src]
impl<'a> From<Voice<'a>> for Kind<'a>
[src]
impl<'a> From<Article<'a>> for Kind<'a>
[src]
impl<'a> From<Contact<'a>> for Kind<'a>
[src]
impl<'a> From<Game<'a>> for Kind<'a>
[src]
impl<'a> From<Location<'a>> for Kind<'a>
[src]
impl<'a> From<Venue<'a>> for Kind<'a>
[src]
impl<'a> Debug for Kind<'a>
[src]
impl<'a> Serialize for Kind<'a>
[src]
Auto Trait Implementations
impl<'a> Sync for Kind<'a>
impl<'a> Send for Kind<'a>
impl<'a> Unpin for Kind<'a>
impl<'a> RefUnwindSafe for Kind<'a>
impl<'a> UnwindSafe for Kind<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,