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 FeedGetFeedGeneratorParams {
    /// AT-URI of the feed generator record.
    pub feed: String,
}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct FeedGetFeedGeneratorOutput {
    /// Indicates whether the feed generator service has been online recently, or else seems to be inactive.
    pub is_online: bool,
    /// Indicates whether the feed generator service is compatible with the record declaration.
    pub is_valid: bool,
    pub view: crate::api::app::bsky::FeedDefsGeneratorView,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// FeedGetFeedGenerator — Get information about a feed generator. Implemented by AppView.
pub async fn feed_get_feed_generator(
    client: &crate::xrpc::Client,
    params: &FeedGetFeedGeneratorParams,
) -> Result<FeedGetFeedGeneratorOutput, crate::xrpc::Error> {
    client.query("app.bsky.feed.getFeedGenerator", params).await
}