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 QueueUnassignModeratorInput {
    /// DID to be unassigned.
    pub did: crate::syntax::Did,
    /// The ID of the queue to unassign the user from.
    pub queue_id: i64,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// QueueUnassignModerator — Remove a user's assignment from a queue.
pub async fn queue_unassign_moderator(
    client: &crate::xrpc::Client,
    input: &QueueUnassignModeratorInput,
) -> Result<(), crate::xrpc::Error> {
    let _: serde_json::Value = client
        .procedure("tools.ozone.queue.unassignModerator", input)
        .await?;
    Ok(())
}