[][src]Enum tbot::types::inline_query::result::video::MimeType

pub enum MimeType {
    TextHtml,
    VideoMp4,
}

Represents possible MIME types.

Variants

TextHtml

The text/html MIME type.

VideoMp4

The video/mp4 MIME type.

Methods

impl MimeType[src]

pub fn is_html(self) -> bool[src]

Checks if the MIME type is text/html.

pub fn is_zip(self) -> bool[src]

Checks if the MIME type is video/mp4.

Trait Implementations

impl Eq for MimeType[src]

impl Clone for MimeType[src]

impl PartialEq<MimeType> for MimeType[src]

impl Copy for MimeType[src]

impl Hash for MimeType[src]

impl Debug for MimeType[src]

impl Serialize for MimeType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T