pub struct MethodExtractor(pub Method);Expand description
Extracts the HTTP method.
Tuple Fields§
§0: MethodTrait Implementations§
Source§impl Clone for MethodExtractor
impl Clone for MethodExtractor
Source§fn clone(&self) -> MethodExtractor
fn clone(&self) -> MethodExtractor
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 Debug for MethodExtractor
impl Debug for MethodExtractor
Source§impl FromRequest for MethodExtractor
impl FromRequest for MethodExtractor
Source§type Error = ExtractError
type Error = ExtractError
The error type returned when extraction fails.
Auto Trait Implementations§
impl Freeze for MethodExtractor
impl RefUnwindSafe for MethodExtractor
impl Send for MethodExtractor
impl Sync for MethodExtractor
impl Unpin for MethodExtractor
impl UnwindSafe for MethodExtractor
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