atrium_api/tools/ozone/set/
delete_values.rs1pub const NSID: &str = "tools.ozone.set.deleteValues";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct InputData {
7 pub name: String,
9 pub values: Vec<String>,
11}
12pub type Input = crate::types::Object<InputData>;
13#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
14#[serde(tag = "error", content = "message")]
15pub enum Error {
16 SetNotFound(Option<String>),
18}
19impl std::fmt::Display for Error {
20 fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
21 match self {
22 Error::SetNotFound(msg) => {
23 write!(_f, "SetNotFound")?;
24 if let Some(msg) = msg {
25 write!(_f, ": {msg}")?;
26 }
27 }
28 }
29 Ok(())
30 }
31}