hey-sdk 0.30.0

Rust client for the HEY API, generated from a Smithy model of the API
Documentation
// Generated by hey-sdk-generator from openapi.json and behavior-model.json. DO NOT EDIT.

#![allow(clippy::too_many_arguments)]

use crate::client::Client;
use crate::error::Error;
use crate::generated::routes;

pub struct Extenzions<'a> {
    client: &'a Client,
}

impl<'a> Extenzions<'a> {
    pub(crate) fn new(client: &'a Client) -> Self {
        Self { client }
    }

    /// The client this service sends through.
    pub fn client(&self) -> &'a Client {
        self.client
    }

    /// Delete an extenzion. The id is the extenzion's contact id, the one its app_url
    /// carries. Answers 204; forbidden when the caller cannot edit the extenzion.
    pub async fn delete(&self, account_id: i64, extenzion_id: i64) -> Result<(), Error> {
        let mut operation = self
            .client
            .operation(&routes::DELETE_EXTENZION, &[&account_id, &extenzion_id]);
        operation.resource_id(extenzion_id);
        self.client.send_unit(operation).await
    }
}