atrium_api/app/bsky/feed/
describe_feed_generator.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `app.bsky.feed.describeFeedGenerator` namespace.
3pub const NSID: &str = "app.bsky.feed.describeFeedGenerator";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct OutputData {
7    pub did: crate::types::string::Did,
8    pub feeds: Vec<Feed>,
9    #[serde(skip_serializing_if = "core::option::Option::is_none")]
10    pub links: core::option::Option<Links>,
11}
12pub type Output = crate::types::Object<OutputData>;
13#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
14#[serde(tag = "error", content = "message")]
15pub enum Error {}
16impl std::fmt::Display for Error {
17    fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
18        Ok(())
19    }
20}
21#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
22#[serde(rename_all = "camelCase")]
23pub struct FeedData {
24    pub uri: String,
25}
26pub type Feed = crate::types::Object<FeedData>;
27#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
28#[serde(rename_all = "camelCase")]
29pub struct LinksData {
30    #[serde(skip_serializing_if = "core::option::Option::is_none")]
31    pub privacy_policy: core::option::Option<String>,
32    #[serde(skip_serializing_if = "core::option::Option::is_none")]
33    pub terms_of_service: core::option::Option<String>,
34}
35pub type Links = crate::types::Object<LinksData>;