pub enum Method {
Delete,
Get,
Patch,
Post,
Put,
}
Expand description
Represents a http method.
Variants§
Delete
http DELETE
, used for deleting resources.
Get
http GET
, used to retrieving resources.
Patch
http PATCH
, used to update resources.
Post
http POST
, used to create resources.
Put
http PUT
, used to replace resources.
Implementations§
Trait Implementations§
impl Copy for Method
impl Eq 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