Skip to main content

atrium_api/tools/ozone/queue/
delete_queue.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `tools.ozone.queue.deleteQueue` namespace.
3pub const NSID: &str = "tools.ozone.queue.deleteQueue";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct InputData {
7    ///Optional: migrate all reports to this queue. If not specified, reports will be set to unassigned (-1).
8    #[serde(skip_serializing_if = "core::option::Option::is_none")]
9    pub migrate_to_queue_id: core::option::Option<i64>,
10    ///ID of the queue to delete
11    pub queue_id: i64,
12}
13pub type Input = crate::types::Object<InputData>;
14#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
15#[serde(rename_all = "camelCase")]
16pub struct OutputData {
17    pub deleted: bool,
18    ///Number of reports that were migrated (if migration occurred)
19    #[serde(skip_serializing_if = "core::option::Option::is_none")]
20    pub reports_migrated: core::option::Option<i64>,
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 {}
26impl std::fmt::Display for Error {
27    fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
28        Ok(())
29    }
30}