pub struct MethodSkipper { /* private fields */ }Expand description
Skipper for Method. You can use it to skip some methods.
If request method is in the skip list, the request will be skipped.
Implementations§
Source§impl MethodSkipper
impl MethodSkipper
Sourcepub fn skip_get(self, value: bool) -> Self
pub fn skip_get(self, value: bool) -> Self
Add Method::GET method to skipped methods.
Sourcepub fn skip_post(self, value: bool) -> Self
pub fn skip_post(self, value: bool) -> Self
Add Method::POST method to skipped methods.
Sourcepub fn skip_put(self, value: bool) -> Self
pub fn skip_put(self, value: bool) -> Self
Add Method::PUT method to skipped methods.
Sourcepub fn skip_delete(self, value: bool) -> Self
pub fn skip_delete(self, value: bool) -> Self
Add Method::DELETE method to skipped methods.
Sourcepub fn skip_head(self, value: bool) -> Self
pub fn skip_head(self, value: bool) -> Self
Add Method::HEAD method to skipped methods.
Sourcepub fn skip_patch(self, value: bool) -> Self
pub fn skip_patch(self, value: bool) -> Self
Add Method::PATCH method to skipped methods.
Sourcepub fn skip_options(self, value: bool) -> Self
pub fn skip_options(self, value: bool) -> Self
Add Method::OPTIONS method to skipped methods.
Sourcepub fn skip_connect(self, value: bool) -> Self
pub fn skip_connect(self, value: bool) -> Self
Add Method::CONNECT method to skipped methods.
Sourcepub fn skip_trace(self, value: bool) -> Self
pub fn skip_trace(self, value: bool) -> Self
Add Method::TRACE method to skipped methods.
Sourcepub fn skip_method(self, method: Method, value: bool) -> Self
pub fn skip_method(self, method: Method, value: bool) -> Self
Add Method method to skipped methods.
Trait Implementations§
Source§impl Clone for MethodSkipper
impl Clone for MethodSkipper
Source§fn clone(&self) -> MethodSkipper
fn clone(&self) -> MethodSkipper
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 MethodSkipper
impl Debug for MethodSkipper
Source§impl Default for MethodSkipper
impl Default for MethodSkipper
Source§fn default() -> MethodSkipper
fn default() -> MethodSkipper
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MethodSkipper
impl RefUnwindSafe for MethodSkipper
impl Send for MethodSkipper
impl Sync for MethodSkipper
impl Unpin for MethodSkipper
impl UnwindSafe for MethodSkipper
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