(&self)
| 12 | |
| 13 | impl HttpMethod { |
| 14 | pub fn as_str(&self) -> &'static str { |
| 15 | match self { |
| 16 | HttpMethod::Get => "GET", |
| 17 | HttpMethod::Post => "POST", |
| 18 | HttpMethod::Put => "PUT", |
| 19 | HttpMethod::Delete => "DELETE", |
| 20 | } |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | #[derive(Debug, Clone)] |
no outgoing calls
no test coverage detected