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 QueueUpdateQueueInput {
    /// Optional description of the queue
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    /// Enable or disable the queue
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// New display name for the queue
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// ID of the queue to update
    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 QueueUpdateQueueOutput {
    pub queue: crate::api::tools::ozone::QueueDefsQueueView,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// QueueUpdateQueue — Update queue properties. Currently only supports updating the name and enabled status to prevent configuration conflicts.
pub async fn queue_update_queue(
    client: &crate::xrpc::Client,
    input: &QueueUpdateQueueInput,
) -> Result<QueueUpdateQueueOutput, crate::xrpc::Error> {
    client
        .procedure("tools.ozone.queue.updateQueue", input)
        .await
}