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
Text
The "text" top-level type is intended for sending material that is principally textual in form.
Image
A top-level type of "image" indicates that the content specifies one or more individual images.
Audio
A top-level type of "audio" indicates that the content contains audio data.
Video
A top-level type of "video" indicates that the content specifies a time-varying-picture image, possibly with color and coordinated sound.
Application
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.
Multipart
The "multipart" top-level type is to be used for data consisting of multiple entities of independent data types.
Message
A body of media type "message" is itself all or a portion of some kind of message object.
Model
The "model" media type is used for 3D-models.
Unregistered(Cow<'static, str>)
Less common top-level types.
Trait Implementations
impl Clone for Type
[src]
fn clone(&self) -> Type
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Type
[src]
impl Eq for Type
[src]
impl PartialEq for Type
[src]
fn eq(&self, __arg_0: &Type) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Type) -> bool
This method tests for !=
.