1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub struct DeleteOrgBuilder {
    name: String,
}

impl DeleteOrgBuilder {
    pub fn new(name: impl ToString) -> Self {
        Self {
            name: name.to_string(),
        }
    }
    /// Send the request to delete an [Organization](crate::model::orgs::Organization).
    pub async fn send(&self, client: &crate::Client) -> crate::error::Result<()> {
        let req = client.delete(format!("orgs/{}", self.name)).build()?;
        client.make_request(req).await?;
        Ok(())
    }
}