atrium_api/tools/ozone/queue/
route_reports.rs1pub const NSID: &str = "tools.ozone.queue.routeReports";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct InputData {
7 pub end_report_id: i64,
9 pub start_report_id: i64,
11}
12pub type Input = crate::types::Object<InputData>;
13#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
14#[serde(rename_all = "camelCase")]
15pub struct OutputData {
16 pub assigned: i64,
18 pub unmatched: i64,
20}
21pub type Output = crate::types::Object<OutputData>;
22#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
23#[serde(tag = "error", content = "message")]
24pub enum Error {
25 OutOfRange(Option<String>),
27}
28impl std::fmt::Display for Error {
29 fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
30 match self {
31 Error::OutOfRange(msg) => {
32 write!(_f, "OutOfRange")?;
33 if let Some(msg) = msg {
34 write!(_f, ": {msg}")?;
35 }
36 }
37 }
38 Ok(())
39 }
40}