pub struct ContentTypeStartsWith<Patt>(/* private fields */);Expand description
A predicate that matches based on Content-Type header.
Implementations§
Source§impl<Patt: AsRef<str> + Copy> ContentTypeStartsWith<Patt>
impl<Patt: AsRef<str> + Copy> ContentTypeStartsWith<Patt>
Sourcepub fn new(pattern: Patt) -> Self
pub fn new(pattern: Patt) -> Self
Create a new ContentTypeStartsWith predicate.
Trait Implementations§
Source§impl<Patt: Clone> Clone for ContentTypeStartsWith<Patt>
impl<Patt: Clone> Clone for ContentTypeStartsWith<Patt>
Source§fn clone(&self) -> ContentTypeStartsWith<Patt>
fn clone(&self) -> ContentTypeStartsWith<Patt>
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<Patt: Debug> Debug for ContentTypeStartsWith<Patt>
impl<Patt: Debug> Debug for ContentTypeStartsWith<Patt>
impl<Patt: Copy> Copy for ContentTypeStartsWith<Patt>
Auto Trait Implementations§
impl<Patt> Freeze for ContentTypeStartsWith<Patt>where
Patt: Freeze,
impl<Patt> RefUnwindSafe for ContentTypeStartsWith<Patt>where
Patt: RefUnwindSafe,
impl<Patt> Send for ContentTypeStartsWith<Patt>where
Patt: Send,
impl<Patt> Sync for ContentTypeStartsWith<Patt>where
Patt: Sync,
impl<Patt> Unpin for ContentTypeStartsWith<Patt>where
Patt: Unpin,
impl<Patt> UnsafeUnpin for ContentTypeStartsWith<Patt>where
Patt: UnsafeUnpin,
impl<Patt> UnwindSafe for ContentTypeStartsWith<Patt>where
Patt: UnwindSafe,
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