Struct product_os_router::MethodFilter
source · pub struct MethodFilter(/* private fields */);
Expand description
A filter that matches one or more HTTP methods.
Implementations§
source§impl MethodFilter
impl MethodFilter
sourcepub const DELETE: MethodFilter = _
pub const DELETE: MethodFilter = _
Match DELETE
requests.
sourcepub const GET: MethodFilter = _
pub const GET: MethodFilter = _
Match GET
requests.
sourcepub const HEAD: MethodFilter = _
pub const HEAD: MethodFilter = _
Match HEAD
requests.
sourcepub const OPTIONS: MethodFilter = _
pub const OPTIONS: MethodFilter = _
Match OPTIONS
requests.
sourcepub const PATCH: MethodFilter = _
pub const PATCH: MethodFilter = _
Match PATCH
requests.
sourcepub const POST: MethodFilter = _
pub const POST: MethodFilter = _
Match POST
requests.
sourcepub const PUT: MethodFilter = _
pub const PUT: MethodFilter = _
Match PUT
requests.
sourcepub const TRACE: MethodFilter = _
pub const TRACE: MethodFilter = _
Match TRACE
requests.
sourcepub 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§
source§impl Clone for MethodFilter
impl Clone for MethodFilter
source§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 moresource§impl Debug for MethodFilter
impl Debug for MethodFilter
source§impl PartialEq for MethodFilter
impl PartialEq for MethodFilter
source§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 ==
.source§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