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

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

/// UnspeccedGetTrendsSkeleton — Get the skeleton of trends on the network. Intended to be called and then hydrated through app.bs...
pub async fn unspecced_get_trends_skeleton(
    client: &crate::xrpc::Client,
    params: &UnspeccedGetTrendsSkeletonParams,
) -> Result<UnspeccedGetTrendsSkeletonOutput, crate::xrpc::Error> {
    client
        .query("app.bsky.unspecced.getTrendsSkeleton", params)
        .await
}