shrike 0.1.1

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 FeedGetAuthorFeedParams {
    pub actor: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub cursor: Option<String>,
    /// Combinations of post/repost types to include in response.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub include_pins: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub limit: Option<i64>,
}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct FeedGetAuthorFeedOutput {
    #[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>,
}

/// FeedGetAuthorFeed — Get a view of an actor's 'author feed' (post and reposts by the author). Does not require auth.
pub async fn feed_get_author_feed(
    client: &crate::xrpc::Client,
    params: &FeedGetAuthorFeedParams,
) -> Result<FeedGetAuthorFeedOutput, crate::xrpc::Error> {
    client.query("app.bsky.feed.getAuthorFeed", params).await
}