pub enum MimePattern {
All,
TypeWildcard(String),
Exact(String),
}Expand description
MIME type pattern for blob scope
Variants§
All
Match all types
TypeWildcard(String)
Match all subtypes of a type (e.g., “image/*”)
Exact(String)
Exact mime type match
Trait Implementations§
Source§impl Clone for MimePattern
impl Clone for MimePattern
Source§fn clone(&self) -> MimePattern
fn clone(&self) -> MimePattern
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 moreSource§impl Debug for MimePattern
impl Debug for MimePattern
Source§impl FromStr for MimePattern
impl FromStr for MimePattern
Source§impl Hash for MimePattern
impl Hash for MimePattern
Source§impl Ord for MimePattern
impl Ord for MimePattern
Source§fn cmp(&self, other: &MimePattern) -> Ordering
fn cmp(&self, other: &MimePattern) -> 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 for MimePattern
impl PartialEq for MimePattern
Source§impl PartialOrd for MimePattern
impl PartialOrd for MimePattern
impl Eq for MimePattern
impl StructuralPartialEq for MimePattern
Auto Trait Implementations§
impl Freeze for MimePattern
impl RefUnwindSafe for MimePattern
impl Send for MimePattern
impl Sync for MimePattern
impl Unpin for MimePattern
impl UnwindSafe for MimePattern
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.