Struct media_type::AnyMediaType
source · pub struct AnyMediaType { /* private fields */ }
Implementations
sourceimpl AnyMediaType
impl AnyMediaType
pub fn type_(&self) -> Name<'_>
pub fn subtype(&self) -> Name<'_>
pub fn full_type(&self) -> Name<'_>
pub fn get_param<'a, N>(&'a self, attr: N) -> Option<Value<'a>>where
N: PartialEq<Name<'a>>,
pub fn params(&self) -> Params<'_> ⓘ
pub fn as_str_repr(&self) -> &str
pub fn has_utf8_charset(&self) -> bool
pub fn is_multipart(&self) -> bool
Trait Implementations
sourceimpl Clone for AnyMediaType
impl Clone for AnyMediaType
sourcefn clone(&self) -> AnyMediaType
fn clone(&self) -> AnyMediaType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AnyMediaType
impl Debug for AnyMediaType
sourceimpl Display for AnyMediaType
impl Display for AnyMediaType
sourceimpl<S> Into<AnyMediaType> for MediaType<S>where
S: Spec,
impl<S> Into<AnyMediaType> for MediaType<S>where
S: Spec,
sourcefn into(self) -> AnyMediaType
fn into(self) -> AnyMediaType
Converts this type into the (usually inferred) input type.
sourceimpl PartialEq<AnyMediaType> for AnyMediaType
impl PartialEq<AnyMediaType> for AnyMediaType
sourcefn eq(&self, other: &AnyMediaType) -> bool
fn eq(&self, other: &AnyMediaType) -> bool
Auto Trait Implementations
impl RefUnwindSafe for AnyMediaType
impl Send for AnyMediaType
impl Sync for AnyMediaType
impl Unpin for AnyMediaType
impl UnwindSafe for AnyMediaType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more