#[non_exhaustive]pub enum HttpRequestMethod {
Delete,
Get,
Head,
Options,
Patch,
Post,
Put,
}Expand description
HTTP request method.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Clone for HttpRequestMethod
impl Clone for HttpRequestMethod
source§fn clone(&self) -> HttpRequestMethod
fn clone(&self) -> HttpRequestMethod
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 HttpRequestMethod
impl Debug for HttpRequestMethod
source§impl Default for HttpRequestMethod
impl Default for HttpRequestMethod
source§fn default() -> HttpRequestMethod
fn default() -> HttpRequestMethod
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for HttpRequestMethod
impl<'de> Deserialize<'de> for HttpRequestMethod
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
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