atrium_api/app/bsky/feed/
get_feed_generator.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `app.bsky.feed.getFeedGenerator` namespace.
3pub const NSID: &str = "app.bsky.feed.getFeedGenerator";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct ParametersData {
7    ///AT-URI of the feed generator record.
8    pub feed: String,
9}
10pub type Parameters = crate::types::Object<ParametersData>;
11#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
12#[serde(rename_all = "camelCase")]
13pub struct OutputData {
14    ///Indicates whether the feed generator service has been online recently, or else seems to be inactive.
15    pub is_online: bool,
16    ///Indicates whether the feed generator service is compatible with the record declaration.
17    pub is_valid: bool,
18    pub view: crate::app::bsky::feed::defs::GeneratorView,
19}
20pub type Output = crate::types::Object<OutputData>;
21#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
22#[serde(tag = "error", content = "message")]
23pub enum Error {}
24impl std::fmt::Display for Error {
25    fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
26        Ok(())
27    }
28}