pub enum HttpMethod {
Get,
Post,
Put,
Delete,
Options,
Head,
Patch,
Trace,
}
Expand description
HTTP method of the operation.
List of supported HTTP methods https://spec.openapis.org/oas/latest.html#path-item-object
Variants§
Get
Type mapping for HTTP GET request.
Post
Type mapping for HTTP POST request.
Put
Type mapping for HTTP PUT request.
Delete
Type mapping for HTTP DELETE request.
Options
Type mapping for HTTP OPTIONS request.
Head
Type mapping for HTTP HEAD request.
Patch
Type mapping for HTTP PATCH request.
Trace
Type mapping for HTTP TRACE request.
Trait Implementations§
Source§impl Clone for HttpMethod
impl Clone for HttpMethod
Source§fn clone(&self) -> HttpMethod
fn clone(&self) -> HttpMethod
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<'de> Deserialize<'de> for HttpMethod
impl<'de> Deserialize<'de> for HttpMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for HttpMethod
impl Hash for HttpMethod
Source§impl Ord for HttpMethod
impl Ord for HttpMethod
Source§fn cmp(&self, other: &HttpMethod) -> Ordering
fn cmp(&self, other: &HttpMethod) -> 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 HttpMethod
impl PartialEq for HttpMethod
Source§impl PartialOrd for HttpMethod
impl PartialOrd for HttpMethod
Source§impl Serialize for HttpMethod
impl Serialize for HttpMethod
impl Eq for HttpMethod
impl StructuralPartialEq for HttpMethod
Auto Trait Implementations§
impl Freeze for HttpMethod
impl RefUnwindSafe for HttpMethod
impl Send for HttpMethod
impl Sync for HttpMethod
impl Unpin for HttpMethod
impl UnwindSafe for HttpMethod
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.