Struct trillium_http_types::content::MediaTypeProposal [−][src]
pub struct MediaTypeProposal { /* fields omitted */ }Expand description
A proposed Media Type for the Accept header.
Implementations
Methods from Deref<Target = Mime>
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.
Get a reference to a param.
Remove a param from the set. Returns the ParamValue if it was contained within the set.
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for MediaTypeProposalimpl Send for MediaTypeProposalimpl Sync for MediaTypeProposalimpl Unpin for MediaTypeProposalimpl UnwindSafe for MediaTypeProposalBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V