Struct headers_accept::Accept
source · pub struct Accept(/* private fields */);
Expand description
Parsed Accept
header containing a sorted (per q
parameter semantics)
list of MediaTypeBuf
.
Implementations§
source§impl Accept
impl Accept
sourcepub fn media_types(&self) -> impl Iterator<Item = &MediaTypeBuf>
pub fn media_types(&self) -> impl Iterator<Item = &MediaTypeBuf>
Return an iterator over MediaTypeBuf
entries.
Items are sorted according to the value of their q
parameter. If none
is given, the highest precedence is assumed. Items of equal
precedence retain their original ordering.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Accept
impl RefUnwindSafe for Accept
impl Send for Accept
impl Sync for Accept
impl Unpin for Accept
impl UnwindSafe for Accept
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more