#[non_exhaustive]pub enum Method {
Get,
Post,
Put,
Patch,
Delete,
Head,
Options,
}Expand description
HTTP method enum matching the WIT definition.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Get
HTTP GET method - retrieve a resource.
Post
HTTP POST method - create a resource.
Put
HTTP PUT method - replace a resource.
Patch
HTTP PATCH method - partially update a resource.
Delete
HTTP DELETE method - remove a resource.
Head
HTTP HEAD method - retrieve headers only.
Options
HTTP OPTIONS method - retrieve allowed methods.
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