shrike 0.1.5

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

#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ModerationGetConvoParams {
    pub convo_id: String,
}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ModerationGetConvoOutput {
    pub convo: crate::api::chat::bsky::ModerationDefsConvoView,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// ModerationGetConvo — [NOTE: This is under active development and should be considered unstable while this note is here]. Gets an existing conversation by its ID, for moderation purposes. Does not require the requester to be a member of the conversation.
pub async fn moderation_get_convo(
    client: &crate::xrpc::Client,
    params: &ModerationGetConvoParams,
) -> Result<ModerationGetConvoOutput, crate::xrpc::Error> {
    client.query("chat.bsky.moderation.getConvo", params).await
}