#[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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)