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 FeedGetFeedSkeletonParams {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub cursor: Option<String>,
    pub feed: String,
    #[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 FeedGetFeedSkeletonOutput {
    #[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::FeedDefsSkeletonFeedPost>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub req_id: Option<String>,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// FeedGetFeedSkeleton — Get a skeleton of a feed provided by a feed generator. Auth is optional, depending on provider re...
pub async fn feed_get_feed_skeleton(
    client: &crate::xrpc::Client,
    params: &FeedGetFeedSkeletonParams,
) -> Result<FeedGetFeedSkeletonOutput, crate::xrpc::Error> {
    client.query("app.bsky.feed.getFeedSkeleton", params).await
}