shrike 0.1.1

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 ConvoAcceptConvoInput {
    pub convo_id: String,
    /// 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 ConvoAcceptConvoOutput {
    /// Rev when the convo was accepted. If not present, the convo was already accepted.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rev: Option<String>,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// ConvoAcceptConvo XRPC procedure.
pub async fn convo_accept_convo(
    client: &crate::xrpc::Client,
    input: &ConvoAcceptConvoInput,
) -> Result<ConvoAcceptConvoOutput, crate::xrpc::Error> {
    client.procedure("chat.bsky.convo.acceptConvo", input).await
}