pub struct MediaTypeEntry {
pub media_type: String,
pub quality: f32,
}Expand description
A single media type entry from Accept header
Fields§
§media_type: StringMedia type (e.g., “application/json”)
quality: f32Quality value (0.0 - 1.0), default is 1.0
Trait Implementations§
Source§impl Clone for MediaTypeEntry
impl Clone for MediaTypeEntry
Source§fn clone(&self) -> MediaTypeEntry
fn clone(&self) -> MediaTypeEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MediaTypeEntry
impl RefUnwindSafe for MediaTypeEntry
impl Send for MediaTypeEntry
impl Sync for MediaTypeEntry
impl Unpin for MediaTypeEntry
impl UnwindSafe for MediaTypeEntry
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