pub enum Method {
PATCH,
POST,
PUT,
DELETE,
}Expand description
The HTTP method used in the request.
Note that GET requests do not need
signatures by definition.
Variants§
PATCH
PATCH requests are used to update an existing resource.
POST
POST requests are used to create a new resource.
PUT
PUT requests are used to update an existing resource.
DELETE
GET requests are used to retrieve an existing resource.
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 UnsafeUnpin 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