shrike 0.1.0

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 ConvoUpdateAllReadInput {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<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 ConvoUpdateAllReadOutput {
    pub updated_count: i64,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// ConvoUpdateAllRead XRPC procedure.
pub async fn convo_update_all_read(
    client: &crate::xrpc::Client,
    input: &ConvoUpdateAllReadInput,
) -> Result<ConvoUpdateAllReadOutput, crate::xrpc::Error> {
    client
        .procedure("chat.bsky.convo.updateAllRead", input)
        .await
}