pub enum HttpMethod {
Get,
Put,
Post,
Delete,
Options,
Head,
Patch,
Trace,
Other(String),
}Expand description
HTTP method for an operation. The eight standard verbs plus an
Other(String) escape hatch that carries 3.2 additionalOperations
methods (e.g. RFC 9205 QUERY) verbatim. Generators that emit
against a fixed verb set should match the named variants and either
reject Other (with a StageError::Rejected) or pass the string
through to a lower-level builder API.
Variants§
Get
Put
Post
Delete
Options
Head
Patch
Trace
Other(String)
Carries the upper-cased method name ("QUERY", etc.).
Implementations§
Trait Implementations§
Source§impl Clone for HttpMethod
impl Clone for HttpMethod
Source§fn clone(&self) -> HttpMethod
fn clone(&self) -> HttpMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Hash for HttpMethod
impl Hash for HttpMethod
Source§impl PartialEq for HttpMethod
impl PartialEq for HttpMethod
Source§fn eq(&self, other: &HttpMethod) -> bool
fn eq(&self, other: &HttpMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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