pub enum HttpMethod {
Get,
Put,
Post,
Delete,
Options,
Head,
Patch,
}
Expand description
The HTTP method used for an operation.
Variants§
Implementations§
source§impl HttpMethod
impl HttpMethod
sourcepub fn allows_body(self) -> bool
pub fn allows_body(self) -> bool
Whether this method allows body in requests.
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 Debug for HttpMethod
impl Debug for HttpMethod
source§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 Display for HttpMethod
impl Display for HttpMethod
source§impl From<&Method> for HttpMethod
impl From<&Method> for HttpMethod
source§fn from(method: &Method) -> HttpMethod
fn from(method: &Method) -> HttpMethod
Converts to this type from the input type.
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 Copy 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§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
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.