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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for MediaType
[src]

[src]

Formats the value using the given formatter.

impl Eq for MediaType
[src]

impl PartialEq for MediaType
[src]

[src]

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

[src]

This method tests for !=.

impl Hash for MediaType
[src]

[src]

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

1.3.0
[src]

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

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

[src]

Performs the conversion.

impl Display for MediaType
[src]

[src]

Formats the value using the given formatter. Read more