pub async fn delete_user(&self, id: i64) -> Result<()> {
        let path = format!("/users/{}", id);
        let resp = self.build_request(Method::DELETE, path).send().await?;
        if resp.status().eq(&StatusCode::OK) {
            Ok(())
        } else {
            Err(anyhow!("failed to delete user: {}", resp.text().await?))
        }
    }
/// Mark a registered user as be removed.
Mark a registered user as be removed.
Mark a registered user as be removed .
pub async fn delete_user(&self, id: i64) -> Result<()> {
        let path = format!("/users/{}", id);
        let resp = self.build_request(Method::DELETE, path).send().await?;
        if resp.status().eq(&StatusCode::OK) {
            Ok(())
        } else {
            Err(anyhow!("failed to delete user: {}", resp.text().await?))
        }
    }
pub async fn delete_user ( & self , id : i64 ) -> Result < ( ) > { let path = format ! ( " " id ) ; let resp = self . build_request ( Method :: DELETE , path ) . send ( ) . await ? ; if resp . status ( ) . eq ( & StatusCode :: OK ) { Ok ( ( ) ) } else { Err ( anyhow ! ( " " resp text ( ) await ) ) } }
Mark a registered user as be removed.
Mark a registered user as be removed .
&self
id
i64
&self
id
i64