pub struct HttpMethod;Expand description
Enumerates all supported HTTP methods
Implementations§
Source§impl HttpMethod
impl HttpMethod
pub const GET: &'static str = "GET"
pub const POST: &'static str = "POST"
pub const PUT: &'static str = "PUT"
pub const DELETE: &'static str = "DELETE"
pub const PATCH: &'static str = "PATCH"
pub const HEAD: &'static str = "HEAD"
pub const OPTIONS: &'static str = "OPTIONS"
Sourcepub const ALL_VALUES: &'static [&'static str]
pub const ALL_VALUES: &'static [&'static str]
All valid values for this type
Auto Trait Implementations§
impl Freeze for HttpMethod
impl RefUnwindSafe for HttpMethod
impl Send for HttpMethod
impl Sync for HttpMethod
impl Unpin for HttpMethod
impl UnsafeUnpin for HttpMethod
impl UnwindSafe for HttpMethod
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