Enum media_types::Type [] [src]

pub enum Type {
    Text,
    Image,
    Audio,
    Video,
    Application,
    Multipart,
    Message,
    Model,
    Unregistered(Cow<'static, str>),
}

Provides the six discrete and the two composite top-level media types.

Variants

The "text" top-level type is intended for sending material that is principally textual in form.

A top-level type of "image" indicates that the content specifies one or more individual images.

A top-level type of "audio" indicates that the content contains audio data.

A top-level type of "video" indicates that the content specifies a time-varying-picture image, possibly with color and coordinated sound.

The "application" top-level type is to be used for discrete data that do not fit under any of the other type names, and particularly for data to be processed by some type of application program.

The "multipart" top-level type is to be used for data consisting of multiple entities of independent data types.

A body of media type "message" is itself all or a portion of some kind of message object.

The "model" media type is used for 3D-models.

Less common top-level types.

Trait Implementations

impl Clone for Type
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Type
[src]

Formats the value using the given formatter.

impl Eq for Type
[src]

impl PartialEq for Type
[src]

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

This method tests for !=.

impl Display for Type
[src]

Formats the value using the given formatter. Read more