pub struct AcceptRange {
pub media_type: String,
pub quality: f64,
pub specificity: u8,
}Expand description
One range of an Accept header.
Fields§
§media_type: StringThe media range itself, lower-cased.
quality: f64Quality value, 1.0 when absent.
specificity: u80 for */*, 1 for type/*, 2 for a concrete type.
Trait Implementations§
Source§impl Clone for AcceptRange
impl Clone for AcceptRange
Source§impl Debug for AcceptRange
impl Debug for AcceptRange
Source§impl PartialEq for AcceptRange
impl PartialEq for AcceptRange
impl StructuralPartialEq for AcceptRange
Auto Trait Implementations§
impl Freeze for AcceptRange
impl RefUnwindSafe for AcceptRange
impl Send for AcceptRange
impl Sync for AcceptRange
impl Unpin for AcceptRange
impl UnsafeUnpin for AcceptRange
impl UnwindSafe for AcceptRange
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