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