gitea_sdk/api/orgs/
delete.rs

1pub struct DeleteOrgBuilder {
2    name: String,
3}
4
5impl DeleteOrgBuilder {
6    pub fn new(name: impl ToString) -> Self {
7        Self {
8            name: name.to_string(),
9        }
10    }
11    /// Send the request to delete an [Organization](crate::model::orgs::Organization).
12    pub async fn send(&self, client: &crate::Client) -> crate::error::Result<()> {
13        let req = client.delete(format!("orgs/{}", self.name)).build()?;
14        client.make_request(req).await?;
15        Ok(())
16    }
17}