#[repr(transparent)]pub struct HttpMethod(pub i32);
Tuple Fields§
§0: i32
Implementations§
Source§impl HttpMethod
impl HttpMethod
pub const GET: HttpMethod
pub const POST: HttpMethod
pub const PATCH: HttpMethod
pub const OPTIONS: HttpMethod
pub const CONNECT: HttpMethod
pub const HEAD: HttpMethod
pub const PUT: HttpMethod
pub const DELETE: HttpMethod
pub const TRACE: HttpMethod
pub const MAX: HttpMethod
Trait Implementations§
Source§impl Clone for HttpMethod
impl Clone for HttpMethod
Source§fn clone(&self) -> HttpMethod
fn clone(&self) -> HttpMethod
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HttpMethod
impl Debug for HttpMethod
Source§impl Default for HttpMethod
impl Default for HttpMethod
Source§fn default() -> HttpMethod
fn default() -> HttpMethod
Returns the “default value” for a type. Read more
Source§impl Hash for HttpMethod
impl Hash for HttpMethod
Source§impl Ord for HttpMethod
impl Ord for HttpMethod
Source§fn cmp(&self, other: &HttpMethod) -> Ordering
fn cmp(&self, other: &HttpMethod) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HttpMethod
impl PartialEq for HttpMethod
Source§impl PartialOrd for HttpMethod
impl PartialOrd for HttpMethod
impl Copy for HttpMethod
impl Eq for HttpMethod
impl StructuralPartialEq for HttpMethod
Auto Trait Implementations§
impl Freeze for HttpMethod
impl RefUnwindSafe for HttpMethod
impl Send for HttpMethod
impl Sync for HttpMethod
impl Unpin 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