pub struct MethodFilter(/* private fields */);
Expand description
A filter that matches one or more HTTP methods.
Implementations§
§impl MethodFilter
impl MethodFilter
pub const DELETE: MethodFilter = _
pub const DELETE: MethodFilter = _
Match DELETE
requests.
pub const GET: MethodFilter = _
pub const GET: MethodFilter = _
Match GET
requests.
pub const HEAD: MethodFilter = _
pub const HEAD: MethodFilter = _
Match HEAD
requests.
pub const OPTIONS: MethodFilter = _
pub const OPTIONS: MethodFilter = _
Match OPTIONS
requests.
pub const PATCH: MethodFilter = _
pub const PATCH: MethodFilter = _
Match PATCH
requests.
pub const POST: MethodFilter = _
pub const POST: MethodFilter = _
Match POST
requests.
pub const PUT: MethodFilter = _
pub const PUT: MethodFilter = _
Match PUT
requests.
pub const TRACE: MethodFilter = _
pub const TRACE: MethodFilter = _
Match TRACE
requests.
pub const fn or(self, other: MethodFilter) -> MethodFilter
pub const fn or(self, other: MethodFilter) -> MethodFilter
Performs the OR operation between the MethodFilter
in self
with other
.
Trait Implementations§
§impl Clone for MethodFilter
impl Clone for MethodFilter
§fn clone(&self) -> MethodFilter
fn clone(&self) -> MethodFilter
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 more§impl Debug for MethodFilter
impl Debug for MethodFilter
§impl PartialEq for MethodFilter
impl PartialEq for MethodFilter
§fn eq(&self, other: &MethodFilter) -> bool
fn eq(&self, other: &MethodFilter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl TryFrom<Method> for MethodFilter
impl TryFrom<Method> for MethodFilter
impl Copy for MethodFilter
impl StructuralPartialEq for MethodFilter
Auto Trait Implementations§
impl Freeze for MethodFilter
impl RefUnwindSafe for MethodFilter
impl Send for MethodFilter
impl Sync for MethodFilter
impl Unpin for MethodFilter
impl UnwindSafe for MethodFilter
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