#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct UnspeccedGetTrendsParams {
#[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 UnspeccedGetTrendsOutput {
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub trends: Vec<crate::api::app::bsky::UnspeccedDefsTrendView>,
#[serde(flatten)]
pub extra: std::collections::HashMap<String, serde_json::Value>,
}
pub async fn unspecced_get_trends(
client: &crate::xrpc::Client,
params: &UnspeccedGetTrendsParams,
) -> Result<UnspeccedGetTrendsOutput, crate::xrpc::Error> {
client.query("app.bsky.unspecced.getTrends", params).await
}