pub enum Verb {
GET,
POST,
PUT,
DELETE,
PATCH,
HEAD,
OPTIONS,
}Expand description
An HTTP method. Used in routes! verb prefixes and for the Allow header
the framework stamps on 405 responses.
Variants§
GET
The HTTP GET method.
POST
The HTTP POST method.
PUT
The HTTP PUT method.
DELETE
The HTTP DELETE method.
PATCH
The HTTP PATCH method.
HEAD
The HTTP HEAD method.
OPTIONS
The HTTP OPTIONS method.
Implementations§
Trait Implementations§
impl Copy for Verb
impl Eq for Verb
impl StructuralPartialEq for Verb
Auto Trait Implementations§
impl Freeze for Verb
impl RefUnwindSafe for Verb
impl Send for Verb
impl Sync for Verb
impl Unpin for Verb
impl UnsafeUnpin for Verb
impl UnwindSafe for Verb
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.