/// Make a `PUT` request to the API with a json body.
Make a `PUT` request to the API with a json body.
Make a ` PUT ` request to the API with a json body .
pub async fn put<T: Serialize>(&self, path: impl AsRef<str>, body: T) -> Result {
        let response = self.0.put(Self::make_url(path)).json(&body).send().await?;
        if !response.status().is_success() {
            return Err(Error::UnsuccessfulRequest(response));
        }
        Ok(())
    }
pub async fn put < T : Serialize > ( & self , path : impl AsRef < str > , body : T ) -> Result { let response = self . 0 . put ( Self :: make_url ( path ) ) . json ( & body ) . send ( ) . await ? ; if ! response . status ( ) . is_success ( ) { return Err ( Error :: UnsuccessfulRequest ( response ) ) ; } Ok ( ( ) ) }
Make a `PUT` request to the API with a json body.
Make a ` PUT ` request to the API with a json body .
&self
path
impl AsRef<str>
body
T