pub enum MediaTypeMatch {
    Full,
    SubStar,
    Star,
    None,
}Expand description
Enum to represent a match with media types
Variants§
Full
Full match
SubStar
Match where the sub-type was a wild card
Star
Full whild card match (type and sub-type)
None
Does not match
Trait Implementations§
source§impl Clone for MediaTypeMatch
 
impl Clone for MediaTypeMatch
source§fn clone(&self) -> MediaTypeMatch
 
fn clone(&self) -> MediaTypeMatch
Returns a copy 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 moresource§impl Debug for MediaTypeMatch
 
impl Debug for MediaTypeMatch
source§impl Ord for MediaTypeMatch
 
impl Ord for MediaTypeMatch
source§fn cmp(&self, other: &MediaTypeMatch) -> Ordering
 
fn cmp(&self, other: &MediaTypeMatch) -> Ordering
1.21.0 · 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<MediaTypeMatch> for MediaTypeMatch
 
impl PartialEq<MediaTypeMatch> for MediaTypeMatch
source§fn eq(&self, other: &MediaTypeMatch) -> bool
 
fn eq(&self, other: &MediaTypeMatch) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd<MediaTypeMatch> for MediaTypeMatch
 
impl PartialOrd<MediaTypeMatch> for MediaTypeMatch
source§fn partial_cmp(&self, other: &MediaTypeMatch) -> Option<Ordering>
 
fn partial_cmp(&self, other: &MediaTypeMatch) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moreimpl Eq for MediaTypeMatch
impl StructuralEq for MediaTypeMatch
impl StructuralPartialEq for MediaTypeMatch
Auto Trait Implementations§
impl RefUnwindSafe for MediaTypeMatch
impl Send for MediaTypeMatch
impl Sync for MediaTypeMatch
impl Unpin for MediaTypeMatch
impl UnwindSafe for MediaTypeMatch
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
source§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.