pub struct Method(/* private fields */);Expand description
An HTTP request method.
Implementations§
Source§impl Method
impl Method
pub const GET: Self
pub const POST: Self
pub const PUT: Self
pub const PATCH: Self
pub const DELETE: Self
pub const HEAD: Self
pub const OPTIONS: Self
pub const CONNECT: Self
pub const TRACE: Self
pub fn is_get(&self) -> bool
pub fn is_post(&self) -> bool
pub fn is_put(&self) -> bool
pub fn is_patch(&self) -> bool
pub fn is_delete(&self) -> bool
pub fn is_head(&self) -> bool
pub fn is_options(&self) -> bool
pub fn is_connect(&self) -> bool
pub fn is_trace(&self) -> bool
Trait Implementations§
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 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