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

pub enum MimeType {
    ApplicationPdf,
    ApplicationZip,
}

Represents possible MIME types for a fresh document.

Variants

ApplicationPdf

The application/pdf MIME type.

ApplicationZip

The application/zip MIME type.

Methods

impl MimeType[src]

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

Checks if the MIME type is application/pdf.

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

Checks if the MIME type is application/zip.

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