/// Convenience method to make a PATCH request with json body to a URL.
Convenience method to make a PATCH request with json body to a URL.
Convenience method to make a PATCH request with json body to a URL .
fn patch<U, I, O>(&self, url: U, json: &I) -> Result<O, Error>
        where U: IntoUrl, I: Serialize, O: DeserializeOwned
    {
        self.request(Method::Patch, url, Some(json))
            .and_then(|mut resp| resp.json().map_err(|e| e.into()))
    }
fn patch < U , I , O > ( & self , url : U , json : & I ) -> Result < O , Error > where U : IntoUrl , I : Serialize , O : DeserializeOwned { self . request ( Method :: Patch , url , Some ( json ) ) . and_then ( | mut resp | resp . json ( ) . map_err ( | e | e . into ( ) ) ) }
Convenience method to make a PATCH request with json body to a URL.
Convenience method to make a PATCH request with json body to a URL .
&self
url
U
json
&I