Struct http_types::content::MediaTypeProposal [−][src]
pub struct MediaTypeProposal { /* fields omitted */ }
A proposed Media Type for the Accept
header.
Implementations
Methods from Deref<Target = Mime>
pub fn basetype(&self) -> &str
[src]
Access the Mime’s type
value.
According to the spec this method should be named type
, but that’s a reserved keyword in
Rust so hence prefix with base
instead.
pub fn subtype(&self) -> &str
[src]
Access the Mime’s subtype
value.
pub fn essence(&self) -> &str
[src]
Access the Mime’s essence
value.
pub fn param(&self, name: impl Into<ParamName>) -> Option<&ParamValue>
[src]
Get a reference to a param.
pub fn remove_param(&mut self, name: impl Into<ParamName>) -> Option<ParamValue>
[src]
Remove a param from the set. Returns the ParamValue
if it was contained within the set.
Trait Implementations
impl Clone for MediaTypeProposal
[src]
impl Clone for MediaTypeProposal
[src]fn clone(&self) -> MediaTypeProposal
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Deref for MediaTypeProposal
[src]
impl Deref for MediaTypeProposal
[src]impl From<MediaTypeProposal> for Mime
[src]
impl From<MediaTypeProposal> for Mime
[src]fn from(accept: MediaTypeProposal) -> Self
[src]
impl From<MediaTypeProposal> for HeaderValue
[src]
impl From<MediaTypeProposal> for HeaderValue
[src]fn from(entry: MediaTypeProposal) -> HeaderValue
[src]
impl PartialEq<MediaTypeProposal> for MediaTypeProposal
[src]
impl PartialEq<MediaTypeProposal> for MediaTypeProposal
[src]fn eq(&self, other: &MediaTypeProposal) -> bool
[src]
fn ne(&self, other: &MediaTypeProposal) -> bool
[src]
impl PartialEq<Mime> for MediaTypeProposal
[src]
impl PartialEq<Mime> for MediaTypeProposal
[src]impl PartialEq<Mime> for &MediaTypeProposal
[src]
impl PartialEq<Mime> for &MediaTypeProposal
[src]Auto Trait Implementations
impl RefUnwindSafe for MediaTypeProposal
impl RefUnwindSafe for MediaTypeProposal
impl Send for MediaTypeProposal
impl Send for MediaTypeProposal
impl Sync for MediaTypeProposal
impl Sync for MediaTypeProposal
impl Unpin for MediaTypeProposal
impl Unpin for MediaTypeProposal
impl UnwindSafe for MediaTypeProposal
impl UnwindSafe for MediaTypeProposal