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

#[non_exhaustive]
#[must_use]
pub enum MimeType {
    TextHtml,
    VideoMp4,
}

Represents possible MIME types.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TextHtml

The text/html MIME type.

VideoMp4

The video/mp4 MIME type.

Implementations

impl MimeType[src]

pub fn is_text_html(&self) -> bool[src]

Returns true if self is of variant TextHtml.

pub fn is_video_mp4(&self) -> bool[src]

Returns true if self is of variant VideoMp4.

Trait Implementations

impl Clone for MimeType[src]

impl Debug for MimeType[src]

impl Hash for MimeType[src]

impl PartialEq<MimeType> for MimeType[src]

impl Serialize for MimeType[src]

impl Copy for MimeType[src]

impl Eq for MimeType[src]

impl StructuralEq for MimeType[src]

impl StructuralPartialEq for MimeType[src]

Auto Trait Implementations

impl RefUnwindSafe for MimeType

impl Send for MimeType

impl Sync for MimeType

impl Unpin for MimeType

impl UnwindSafe for MimeType

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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.