[][src]Enum grammers_tl_types::enums::storage::FileType

pub enum FileType {
    FileUnknown(FileUnknown),
    FilePartial(FilePartial),
    FileJpeg(FileJpeg),
    FileGif(FileGif),
    FilePng(FilePng),
    FilePdf(FilePdf),
    FileMp3(FileMp3),
    FileMov(FileMov),
    FileMp4(FileMp4),
    FileWebp(FileWebp),
}

Variants

FileUnknown(FileUnknown)
FilePartial(FilePartial)
FileJpeg(FileJpeg)
FileGif(FileGif)
FilePng(FilePng)
FilePdf(FilePdf)
FileMp3(FileMp3)
FileMov(FileMov)
FileMp4(FileMp4)
FileWebp(FileWebp)

Trait Implementations

impl Clone for FileType[src]

impl Debug for FileType[src]

impl Deserializable for FileType[src]

impl From<FileGif> for FileType[src]

impl From<FileJpeg> for FileType[src]

impl From<FileMov> for FileType[src]

impl From<FileMp3> for FileType[src]

impl From<FileMp4> for FileType[src]

impl From<FilePartial> for FileType[src]

impl From<FilePdf> for FileType[src]

impl From<FilePng> for FileType[src]

impl From<FileUnknown> for FileType[src]

impl From<FileWebp> for FileType[src]

impl PartialEq<FileType> for FileType[src]

impl Serializable for FileType[src]

impl StructuralPartialEq for FileType[src]

impl TryFrom<FileType> for FileGif[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<FileType> for FileJpeg[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<FileType> for FileMov[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<FileType> for FileMp3[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<FileType> for FileMp4[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<FileType> for FilePartial[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<FileType> for FilePdf[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<FileType> for FilePng[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<FileType> for FileUnknown[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<FileType> for FileWebp[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

Auto Trait Implementations

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, U> Into<U> for T where
    U: From<T>, 
[src]

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.