Enum mime::TopLevel [] [src]

pub enum TopLevel {
    Star,
    Text,
    Image,
    Audio,
    Video,
    Application,
    Multipart,
    Message,
    Model,
    Ext(String),
}

Variants

StarTextImageAudioVideoApplicationMultipartMessageModelExt(String)

Trait Implementations

impl Debug for TopLevel
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for TopLevel
[src]

fn clone(&self) -> TopLevel

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 PartialEq for TopLevel
[src]

fn eq(&self, other: &TopLevel) -> bool

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

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Display for TopLevel
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.

impl FromStr for TopLevel
[src]

type Err = ()

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<TopLevel()>

Parses a string s to return a value of this type. Read more