Enum reqwest::header::MediaDesc
[−]
[src]
pub enum MediaDesc { Screen, Tty, Tv, Projection, Handheld, Print, Braille, Aural, All, Extension(String), }
A Media Descriptors Enum based on: https://www.w3.org/TR/html401/types.html#h-6.13
Variants
Screen
screen.
Tty
tty.
Tv
tv.
Projection
projection.
Handheld
handheld.
Print
print.
Braille
braille.
Aural
aural.
All
all.
Extension(String)
Unrecognized media descriptor extension.
Trait Implementations
impl FromStr for MediaDesc
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<MediaDesc, Error>
[src]
Parses a string s
to return a value of this type. Read more
impl Display for MediaDesc
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl PartialEq<MediaDesc> for MediaDesc
[src]
fn eq(&self, __arg_0: &MediaDesc) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MediaDesc) -> bool
[src]
This method tests for !=
.
impl Debug for MediaDesc
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more