Skip to main content

atrium_api/tools/ozone/report/
close_reports.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `tools.ozone.report.closeReports` namespace.
3pub const NSID: &str = "tools.ozone.report.closeReports";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct InputData {
7    ///Optional moderator-only note recorded on each close activity. Not visible to reporters.
8    #[serde(skip_serializing_if = "core::option::Option::is_none")]
9    pub internal_note: core::option::Option<String>,
10    ///Set true when this action is triggered by an automated process. Defaults to false.
11    #[serde(skip_serializing_if = "core::option::Option::is_none")]
12    pub is_automated: core::option::Option<bool>,
13    ///If specified, only reports of the given report types (fully qualified reason NSIDs) are closed. When omitted, all non-closed reports on the subject are targeted.
14    #[serde(skip_serializing_if = "core::option::Option::is_none")]
15    pub report_types: core::option::Option<Vec<String>>,
16    ///Subject DID (account-level reports) or AT-URI (record-level reports) whose reports should be closed.
17    pub subject: String,
18}
19pub type Input = crate::types::Object<InputData>;
20#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
21#[serde(rename_all = "camelCase")]
22pub struct OutputData {
23    ///Number of reports that were transitioned to closed.
24    pub closed_count: i64,
25    ///IDs of the reports that were closed.
26    pub report_ids: Vec<i64>,
27}
28pub type Output = crate::types::Object<OutputData>;
29#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
30#[serde(tag = "error", content = "message")]
31pub enum Error {}
32impl std::fmt::Display for Error {
33    fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
34        Ok(())
35    }
36}