atrium_api/app/bsky/feed/
get_timeline.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `app.bsky.feed.getTimeline` namespace.
3pub const NSID: &str = "app.bsky.feed.getTimeline";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct ParametersData {
7    ///Variant 'algorithm' for timeline. Implementation-specific. NOTE: most feed flexibility has been moved to feed generator mechanism.
8    #[serde(skip_serializing_if = "core::option::Option::is_none")]
9    pub algorithm: core::option::Option<String>,
10    #[serde(skip_serializing_if = "core::option::Option::is_none")]
11    pub cursor: core::option::Option<String>,
12    #[serde(skip_serializing_if = "core::option::Option::is_none")]
13    pub limit: core::option::Option<crate::types::LimitedNonZeroU8<100u8>>,
14}
15pub type Parameters = crate::types::Object<ParametersData>;
16#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
17#[serde(rename_all = "camelCase")]
18pub struct OutputData {
19    #[serde(skip_serializing_if = "core::option::Option::is_none")]
20    pub cursor: core::option::Option<String>,
21    pub feed: Vec<crate::app::bsky::feed::defs::FeedViewPost>,
22}
23pub type Output = crate::types::Object<OutputData>;
24#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
25#[serde(tag = "error", content = "message")]
26pub enum Error {}
27impl std::fmt::Display for Error {
28    fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
29        Ok(())
30    }
31}