shrike 0.1.6

AT Protocol library for Rust
Documentation
// Code generated by lexgen. DO NOT EDIT.

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueueDeleteQueueInput {
    /// Optional: migrate all reports to this queue. If not specified, reports will be set to unassigned (-1).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub migrate_to_queue_id: Option<i64>,
    /// ID of the queue to delete
    pub queue_id: i64,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct QueueDeleteQueueOutput {
    pub deleted: bool,
    /// Number of reports that were migrated (if migration occurred)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub reports_migrated: Option<i64>,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// QueueDeleteQueue — Delete a moderation queue. Optionally migrate reports to another queue.
pub async fn queue_delete_queue(
    client: &crate::xrpc::Client,
    input: &QueueDeleteQueueInput,
) -> Result<QueueDeleteQueueOutput, crate::xrpc::Error> {
    client
        .procedure("tools.ozone.queue.deleteQueue", input)
        .await
}