Enum http_srv::request::RequestMethod
source · pub enum RequestMethod {
GET,
POST,
PUT,
DELETE,
HEAD,
PATCH,
CONNECT,
OPTIONS,
TRACE,
}
Expand description
Request Method
Represents the method of the HTTP request
Variants§
Trait Implementations§
source§impl Clone for RequestMethod
impl Clone for RequestMethod
source§fn clone(&self) -> RequestMethod
fn clone(&self) -> RequestMethod
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 RequestMethod
impl Debug for RequestMethod
source§impl Display for RequestMethod
impl Display for RequestMethod
source§impl FromStr for RequestMethod
impl FromStr for RequestMethod
source§impl Hash for RequestMethod
impl Hash for RequestMethod
source§impl PartialEq for RequestMethod
impl PartialEq for RequestMethod
source§fn eq(&self, other: &RequestMethod) -> bool
fn eq(&self, other: &RequestMethod) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RequestMethod
impl Eq for RequestMethod
impl StructuralPartialEq for RequestMethod
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)