Enum rexiv2::MediaType [] [src]

pub enum MediaType {
    Bmp,
    CanonCr2,
    CanonCrw,
    Eps,
    FujiRaf,
    Gif,
    Jp2,
    Jpeg,
    MinoltaMrw,
    OlympusOrf,
    Png,
    Psd,
    PanasonicRw2,
    Tga,
    Tiff,
    Other(String),
}

The media types that an image might have.

This can be easily converted to/created from an Internet Media Type string with the ::from() method, thanks to the std::convert::From trait.

Variants

image/x-ms-bmp

image/x-canon-cr2

image/x-canon-crw

application/postscript

image/x-fuji-raf

image/gif

image/jp2

image/jpeg

image/x-minolta-mrw

image/x-olympus-orf

image/png

image/x-photoshop

image/x-panasonic-rw2

image/targa

image/tiff

Some other, unrecognized, media type, contained within.

Trait Implementations

impl Clone for MediaType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for MediaType
[src]

Formats the value using the given formatter.

impl Eq for MediaType
[src]

impl PartialEq for MediaType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for MediaType
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a> From<&'a str> for MediaType
[src]

Performs the conversion.

impl Display for MediaType
[src]

Formats the value using the given formatter. Read more