pub async fn patch<T: Serialize>(&self, path: impl AsRef<str>, body: T) -> Result {
        let response = self
            .0
            .patch(Self::make_url(path))
            .json(&body)
            .send()
            .await?;

        if !response.status().is_success() {
            return Err(Error::UnsuccessfulRequest(response));
        }

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