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 FeedGetListFeedParams {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub cursor: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub limit: Option<i64>,
    pub list: String,
}

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

/// FeedGetListFeed — Get a feed of recent posts from a list (posts and reposts from any actors on the list). Does not ...
pub async fn feed_get_list_feed(
    client: &crate::xrpc::Client,
    params: &FeedGetListFeedParams,
) -> Result<FeedGetListFeedOutput, crate::xrpc::Error> {
    client.query("app.bsky.feed.getListFeed", params).await
}