atrium_api/tools/ozone/set/
delete_set.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `tools.ozone.set.deleteSet` namespace.
3pub const NSID: &str = "tools.ozone.set.deleteSet";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct InputData {
7    ///Name of the set to delete
8    pub name: String,
9}
10pub type Input = crate::types::Object<InputData>;
11#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
12#[serde(rename_all = "camelCase")]
13pub struct OutputData {}
14pub type Output = crate::types::Object<OutputData>;
15#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
16#[serde(tag = "error", content = "message")]
17pub enum Error {
18    ///set with the given name does not exist
19    SetNotFound(Option<String>),
20}
21impl std::fmt::Display for Error {
22    fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
23        match self {
24            Error::SetNotFound(msg) => {
25                write!(_f, "SetNotFound")?;
26                if let Some(msg) = msg {
27                    write!(_f, ": {msg}")?;
28                }
29            }
30        }
31        Ok(())
32    }
33}