pub struct ElifMethod(/* private fields */);
Expand description
Framework-native HTTP method wrapper that hides Axum internals
Implementations§
Source§impl ElifMethod
impl ElifMethod
pub const POST: Self
pub const PUT: Self
pub const DELETE: Self
pub const PATCH: Self
pub const HEAD: Self
pub const OPTIONS: Self
pub const TRACE: Self
pub const CONNECT: Self
Sourcepub fn from_str(method: &str) -> Result<Self, ParseError>
pub fn from_str(method: &str) -> Result<Self, ParseError>
Create method from string
Sourcepub fn is_idempotent(&self) -> bool
pub fn is_idempotent(&self) -> bool
Check if method is idempotent (GET, HEAD, PUT, DELETE, OPTIONS, TRACE)
Trait Implementations§
Source§impl Clone for ElifMethod
impl Clone for ElifMethod
Source§fn clone(&self) -> ElifMethod
fn clone(&self) -> ElifMethod
Returns a duplicate 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 ElifMethod
impl Debug for ElifMethod
Source§impl Display for ElifMethod
impl Display for ElifMethod
Source§impl FromStr for ElifMethod
impl FromStr for ElifMethod
Source§impl Hash for ElifMethod
impl Hash for ElifMethod
Source§impl PartialEq for ElifMethod
impl PartialEq for ElifMethod
impl Eq for ElifMethod
impl StructuralPartialEq for ElifMethod
Auto Trait Implementations§
impl Freeze for ElifMethod
impl RefUnwindSafe for ElifMethod
impl Send for ElifMethod
impl Sync for ElifMethod
impl Unpin for ElifMethod
impl UnwindSafe for ElifMethod
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.