#[non_exhaustive]pub enum Method {
Delete,
Get,
Patch,
Post,
Put,
}
Expand description
Request method.
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.
Implementations§
source§impl Method
impl Method
sourcepub const fn to_http(self) -> HttpMethod
pub const fn to_http(self) -> HttpMethod
Convert the method into the equivalent http::Method
.
Trait Implementations§
source§impl PartialEq<Method> for Method
impl PartialEq<Method> for Method
impl Copy for Method
impl Eq for Method
impl StructuralEq for Method
impl StructuralPartialEq for Method
Auto Trait Implementations§
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