[][src]Struct media_type::AnyMediaType

pub struct AnyMediaType { /* fields omitted */ }

Methods

impl AnyMediaType[src]

pub fn type_(&self) -> Name[src]

pub fn subtype(&self) -> Name[src]

pub fn full_type(&self) -> Name[src]

pub fn get_param<'a, N>(&'a self, attr: N) -> Option<Value<'a>> where
    N: PartialEq<Name<'a>>, 
[src]

Important traits for Params<'a>
pub fn params(&self) -> Params[src]

pub fn as_str_repr(&self) -> &str[src]

pub fn has_utf8_charset(&self) -> bool[src]

pub fn is_multipart(&self) -> bool[src]

Trait Implementations

impl<S> Into<AnyMediaType> for MediaType<S> where
    S: Spec
[src]

impl Clone for AnyMediaType[src]

impl PartialEq<AnyMediaType> for AnyMediaType[src]

impl Display for AnyMediaType[src]

impl Debug for AnyMediaType[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]