fn map_method(method: api_request::Method) -> reqwest::Method {
    match method {
        api_request::Method::GET => reqwest::Method::GET,
        api_request::Method::HEAD => reqwest::Method::HEAD,
        api_request::Method::POST => reqwest::Method::POST,
        api_request::Method::OPTIONS => reqwest::Method::OPTIONS,
        api_request::Method::CONNECT => reqwest::Method::CONNECT,
        api_request::Method::TRACE => reqwest::Method::TRACE,
        api_request::Method::DELETE => reqwest::Method::DELETE,
        api_request::Method::PUT => reqwest::Method::PUT,
        api_request::Method::PATCH => reqwest::Method::PATCH,
    }
}
// The reason why directly use Method in reqwest is that i can't find a simple way to
// get a unique id for a api_request, and serialize to json is a compromize way and Method in reqwest
// is not serializable.
The reason why directly use Method in reqwest is that i can't find a simple way to
get a unique id for a api_request, and serialize to json is a compromize way and Method in reqwest
is not serializable.
The reason why directly use Method in reqwest is that i can ' t find a simple way to get a unique id for a api_request and serialize to json is a compromize way and Method in reqwest is not serializable .
fn map_method(method: api_request::Method) -> reqwest::Method {
    match method {
        api_request::Method::GET => reqwest::Method::GET,
        api_request::Method::HEAD => reqwest::Method::HEAD,
        api_request::Method::POST => reqwest::Method::POST,
        api_request::Method::OPTIONS => reqwest::Method::OPTIONS,
        api_request::Method::CONNECT => reqwest::Method::CONNECT,
        api_request::Method::TRACE => reqwest::Method::TRACE,
        api_request::Method::DELETE => reqwest::Method::DELETE,
        api_request::Method::PUT => reqwest::Method::PUT,
        api_request::Method::PATCH => reqwest::Method::PATCH,
    }
}
fn map_method ( method : api_request :: Method ) -> reqwest :: Method { match method { api_request :: Method :: GET => reqwest :: Method :: GET , api_request :: Method :: HEAD => reqwest :: Method :: HEAD , api_request :: Method :: POST => reqwest :: Method :: POST , api_request :: Method :: OPTIONS => reqwest :: Method :: OPTIONS , api_request :: Method :: CONNECT => reqwest :: Method :: CONNECT , api_request :: Method :: TRACE => reqwest :: Method :: TRACE , api_request :: Method :: DELETE => reqwest :: Method :: DELETE , api_request :: Method :: PUT => reqwest :: Method :: PUT , api_request :: Method :: PATCH => reqwest :: Method :: PATCH , } }
The reason why directly use Method in reqwest is that i can't find a simple way to
get a unique id for a api_request, and serialize to json is a compromize way and Method in reqwest
is not serializable.
The reason why directly use Method in reqwest is that i can ' t find a simple way to get a unique id for a api_request and serialize to json is a compromize way and Method in reqwest is not serializable .
method
api_request::Method
method
api_request::Method