atrium_api/tools/ozone/set/
get_values.rs

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