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 FeedGetFeedGeneratorsParams {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub feeds: Vec<String>,
}

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

/// FeedGetFeedGenerators — Get information about a list of feed generators.
pub async fn feed_get_feed_generators(
    client: &crate::xrpc::Client,
    params: &FeedGetFeedGeneratorsParams,
) -> Result<FeedGetFeedGeneratorsOutput, crate::xrpc::Error> {
    client
        .query("app.bsky.feed.getFeedGenerators", params)
        .await
}