pub struct MethodFilter(/* private fields */);
Expand description
axum::routing::MethodFilter re-export 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§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)