shrike 0.1.0

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 FeedGetPostsParams {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub uris: Vec<String>,
}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct FeedGetPostsOutput {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub posts: Vec<crate::api::app::bsky::FeedDefsPostView>,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// FeedGetPosts — Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydr...
pub async fn feed_get_posts(
    client: &crate::xrpc::Client,
    params: &FeedGetPostsParams,
) -> Result<FeedGetPostsOutput, crate::xrpc::Error> {
    client.query("app.bsky.feed.getPosts", params).await
}