#[repr(u32)]pub enum Method {
Get = 1,
Post = 2,
Put = 3,
Delete = 4,
Patch = 5,
Head = 6,
Options = 7,
Trace = 8,
Connect = 9,
}
Expand description
HTTP request method
Variants§
Get = 1
GET method
Post = 2
POST method
Put = 3
PUT method
Delete = 4
DELETE method
Patch = 5
PATCH method
Head = 6
HEAD method
Options = 7
OPTIONS method
Trace = 8
TRACE method
Connect = 9
CONNECT method
Trait Implementations§
Source§impl CheckedBitPattern for Method
impl CheckedBitPattern for Method
Source§type Bits = u32
type Bits = u32
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl TryFromPrimitive for Method
impl TryFromPrimitive for Method
impl Copy for Method
impl Eq for Method
impl NoUninit for Method
impl StructuralPartialEq for Method
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
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