Skip to main content

atrium_api/app/bsky/feed/
get_list_feed.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `app.bsky.feed.getListFeed` namespace.
3pub const NSID: &str = "app.bsky.feed.getListFeed";
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    #[serde(skip_serializing_if = "core::option::Option::is_none")]
10    pub limit: core::option::Option<crate::types::LimitedNonZeroU8<100u8>>,
11    ///Reference (AT-URI) to the list record.
12    pub list: String,
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::FeedViewPost>,
21}
22pub type Output = crate::types::Object<OutputData>;
23#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
24#[serde(tag = "error", content = "message")]
25pub enum Error {
26    UnknownList(Option<String>),
27}
28impl std::fmt::Display for Error {
29    fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
30        match self {
31            Error::UnknownList(msg) => {
32                write!(_f, "UnknownList")?;
33                if let Some(msg) = msg {
34                    write!(_f, ": {msg}")?;
35                }
36            }
37        }
38        Ok(())
39    }
40}