pub struct MediaTypeRange {
pub type_: Option<MediaType>,
pub subtype: Option<String>,
pub params: Vec<(String, Option<String>)>,
}Expand description
Media type range.
Fields§
§type_: Option<MediaType>Media type.
None for *.
subtype: Option<String>Optional media sub-type.
None for *.
params: Vec<(String, Option<String>)>Media type parameters.
Trait Implementations§
Source§impl Clone for MediaTypeRange
impl Clone for MediaTypeRange
Source§fn clone(&self) -> MediaTypeRange
fn clone(&self) -> MediaTypeRange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MediaTypeRange
impl Debug for MediaTypeRange
impl Eq for MediaTypeRange
Source§impl Hash for MediaTypeRange
impl Hash for MediaTypeRange
Source§impl Ord for MediaTypeRange
impl Ord for MediaTypeRange
Source§fn cmp(&self, other: &MediaTypeRange) -> Ordering
fn cmp(&self, other: &MediaTypeRange) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MediaTypeRange
impl PartialEq for MediaTypeRange
Source§fn eq(&self, other: &MediaTypeRange) -> bool
fn eq(&self, other: &MediaTypeRange) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MediaTypeRange
impl PartialOrd for MediaTypeRange
impl StructuralPartialEq for MediaTypeRange
Auto Trait Implementations§
impl Freeze for MediaTypeRange
impl RefUnwindSafe for MediaTypeRange
impl Send for MediaTypeRange
impl Sync for MediaTypeRange
impl Unpin for MediaTypeRange
impl UnsafeUnpin for MediaTypeRange
impl UnwindSafe for MediaTypeRange
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