pub enum RequestMethod {
Delete,
Get,
Head,
Options,
Patch,
Post,
Put,
Trace,
Custom(String),
}
Variants§
Trait Implementations§
Source§impl Clone for RequestMethod
impl Clone for RequestMethod
Source§fn clone(&self) -> RequestMethod
fn clone(&self) -> RequestMethod
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 RequestMethod
impl Debug for RequestMethod
Source§impl<'a> From<&'a RequestMethod> for &'a str
impl<'a> From<&'a RequestMethod> for &'a str
Source§fn from(request_method: &'a RequestMethod) -> &'a str
fn from(request_method: &'a RequestMethod) -> &'a str
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RequestMethod
impl RefUnwindSafe for RequestMethod
impl Send for RequestMethod
impl Sync for RequestMethod
impl Unpin for RequestMethod
impl UnwindSafe for RequestMethod
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