pub enum HttpRequestMethod {
CONNECT,
DELETE,
GET,
HEAD,
OPTIONS,
PATCH,
POST,
PUT,
TRACE,
OTHER(Box<str>),
}
Expand description
Represents an HTTP request method.
Variants§
CONNECT
The CONNECT method.
DELETE
The DELETE method.
GET
The GET method.
HEAD
The HEAD method.
OPTIONS
The OPTIONS method.
PATCH
The PATCH method.
POST
The POST method.
PUT
The PUT method.
TRACE
The TRACE method.
OTHER(Box<str>)
Any other method.
Implementations§
Trait Implementations§
Source§impl Clone for HttpRequestMethod
impl Clone for HttpRequestMethod
Source§fn clone(&self) -> HttpRequestMethod
fn clone(&self) -> HttpRequestMethod
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 HttpRequestMethod
impl Debug for HttpRequestMethod
Source§impl From<&str> for HttpRequestMethod
impl From<&str> for HttpRequestMethod
Source§impl Hash for HttpRequestMethod
impl Hash for HttpRequestMethod
Source§impl Ord for HttpRequestMethod
impl Ord for HttpRequestMethod
Source§fn cmp(&self, other: &HttpRequestMethod) -> Ordering
fn cmp(&self, other: &HttpRequestMethod) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HttpRequestMethod
impl PartialEq for HttpRequestMethod
Source§impl PartialOrd for HttpRequestMethod
impl PartialOrd for HttpRequestMethod
impl Eq for HttpRequestMethod
impl StructuralPartialEq for HttpRequestMethod
Auto Trait Implementations§
impl Freeze for HttpRequestMethod
impl RefUnwindSafe for HttpRequestMethod
impl Send for HttpRequestMethod
impl Sync for HttpRequestMethod
impl Unpin for HttpRequestMethod
impl UnwindSafe for HttpRequestMethod
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