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

pub enum MimeType {

Represents possible MIME types for a fresh document.

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.

The application/pdf MIME type.


The application/zip MIME type.


impl MimeType[src]

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

Returns true if self is of variant ApplicationPdf.

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

Returns true if self is of variant ApplicationZip.

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.