Enum http_test_server::http::Method [−][src]
pub enum Method {
GET,
POST,
PUT,
DELETE,
PATCH,
}HTTP methods
Variants
GETPOSTPUTDELETEPATCH
Methods
impl Method[src]
impl Methodpub fn equal(&self, value: &str) -> bool[src]
pub fn equal(&self, value: &str) -> boolcompares with string equivalent
let method = Method::POST; assert!(method.equal("POST"));
Trait Implementations
impl Debug for Method[src]
impl Debug for Methodfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Method[src]
impl Clone for Methodfn clone(&self) -> Method[src]
fn clone(&self) -> MethodReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for Method[src]
impl PartialEq for Method