pub enum Method {
Get,
Head,
Post,
Put,
Delete,
Patch,
Options,
Trace,
Connect,
Custom(String),
}
Expand description
Enum with all the standard HTTP methods. It also has
a variant Custom
to support non-standard methods.
Variants§
Trait Implementations§
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