Enum http_test_server::http::Method [−][src]
pub enum Method { GET, POST, PUT, DELETE, PATCH, }
HTTP methods
Variants
GET
POST
PUT
DELETE
PATCH
Methods
impl Method
[src]
impl Method
pub fn equal(&self, value: &str) -> bool
[src]
pub fn equal(&self, value: &str) -> bool
compares with string equivalent
let method = Method::POST; assert!(method.equal("POST"));
Trait Implementations
impl Debug for Method
[src]
impl Debug for Method
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Method
[src]
impl Clone for Method
fn clone(&self) -> Method
[src]
fn clone(&self) -> Method
Returns 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