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 FeedSendInteractionsInput {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub feed: Option<crate::syntax::AtUri>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub interactions: Vec<crate::api::app::bsky::FeedDefsInteraction>,
    /// 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 FeedSendInteractionsOutput {
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// FeedSendInteractions — Send information about interactions with feed items back to the feed generator that served them.
pub async fn feed_send_interactions(
    client: &crate::xrpc::Client,
    input: &FeedSendInteractionsInput,
) -> Result<FeedSendInteractionsOutput, crate::xrpc::Error> {
    client
        .procedure("app.bsky.feed.sendInteractions", input)
        .await
}