pub enum RestMethod {
Post,
Put,
Get,
Delete,
Head,
}Expand description
HTTP-Method (Spec §8.3.2 erlaubt POST/PUT/GET/DELETE + HEAD wie GET).
Variants§
Post
POST — create operations.
Put
PUT — update operations.
Get
GET — read operations.
Delete
DELETE — delete operations.
Head
HEAD — like GET but no body (Spec §8.3.3).
Trait Implementations§
Source§impl Clone for RestMethod
impl Clone for RestMethod
Source§fn clone(&self) -> RestMethod
fn clone(&self) -> RestMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RestMethod
impl Debug for RestMethod
Source§impl Hash for RestMethod
impl Hash for RestMethod
Source§impl PartialEq for RestMethod
impl PartialEq for RestMethod
Source§fn eq(&self, other: &RestMethod) -> bool
fn eq(&self, other: &RestMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RestMethod
impl Eq for RestMethod
impl StructuralPartialEq for RestMethod
Auto Trait Implementations§
impl Freeze for RestMethod
impl RefUnwindSafe for RestMethod
impl Send for RestMethod
impl Sync for RestMethod
impl Unpin for RestMethod
impl UnsafeUnpin for RestMethod
impl UnwindSafe for RestMethod
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