atrium_api/com/atproto/sync/
list_repos.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `com.atproto.sync.listRepos` namespace.
3pub const NSID: &str = "com.atproto.sync.listRepos";
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::LimitedNonZeroU16<1000u16>>,
11}
12pub type Parameters = crate::types::Object<ParametersData>;
13#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
14#[serde(rename_all = "camelCase")]
15pub struct OutputData {
16    #[serde(skip_serializing_if = "core::option::Option::is_none")]
17    pub cursor: core::option::Option<String>,
18    pub repos: Vec<Repo>,
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}
29#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
30#[serde(rename_all = "camelCase")]
31pub struct RepoData {
32    #[serde(skip_serializing_if = "core::option::Option::is_none")]
33    pub active: core::option::Option<bool>,
34    pub did: crate::types::string::Did,
35    ///Current repo commit CID
36    pub head: crate::types::string::Cid,
37    pub rev: crate::types::string::Tid,
38    ///If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.
39    #[serde(skip_serializing_if = "core::option::Option::is_none")]
40    pub status: core::option::Option<String>,
41}
42pub type Repo = crate::types::Object<RepoData>;