Skip to main content

atrium_api/app/bsky/feed/
get_feed_skeleton.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `app.bsky.feed.getFeedSkeleton` namespace.
3pub const NSID: &str = "app.bsky.feed.getFeedSkeleton";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct ParametersData {
7    #[serde(skip_serializing_if = "core::option::Option::is_none")]
8    pub cursor: core::option::Option<String>,
9    ///Reference to feed generator record describing the specific feed being requested.
10    pub feed: String,
11    #[serde(skip_serializing_if = "core::option::Option::is_none")]
12    pub limit: core::option::Option<crate::types::LimitedNonZeroU8<100u8>>,
13}
14pub type Parameters = crate::types::Object<ParametersData>;
15#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
16#[serde(rename_all = "camelCase")]
17pub struct OutputData {
18    #[serde(skip_serializing_if = "core::option::Option::is_none")]
19    pub cursor: core::option::Option<String>,
20    pub feed: Vec<crate::app::bsky::feed::defs::SkeletonFeedPost>,
21    ///Unique identifier per request that may be passed back alongside interactions.
22    #[serde(skip_serializing_if = "core::option::Option::is_none")]
23    pub req_id: core::option::Option<String>,
24}
25pub type Output = crate::types::Object<OutputData>;
26#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
27#[serde(tag = "error", content = "message")]
28pub enum Error {
29    UnknownFeed(Option<String>),
30}
31impl std::fmt::Display for Error {
32    fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
33        match self {
34            Error::UnknownFeed(msg) => {
35                write!(_f, "UnknownFeed")?;
36                if let Some(msg) = msg {
37                    write!(_f, ": {msg}")?;
38                }
39            }
40        }
41        Ok(())
42    }
43}