atrium_api/com/atproto/repo/
describe_repo.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `com.atproto.repo.describeRepo` namespace.
3pub const NSID: &str = "com.atproto.repo.describeRepo";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct ParametersData {
7    ///The handle or DID of the repo.
8    pub repo: crate::types::string::AtIdentifier,
9}
10pub type Parameters = crate::types::Object<ParametersData>;
11#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
12#[serde(rename_all = "camelCase")]
13pub struct OutputData {
14    ///List of all the collections (NSIDs) for which this repo contains at least one record.
15    pub collections: Vec<crate::types::string::Nsid>,
16    pub did: crate::types::string::Did,
17    ///The complete DID document for this account.
18    pub did_doc: crate::types::Unknown,
19    pub handle: crate::types::string::Handle,
20    ///Indicates if handle is currently valid (resolves bi-directionally)
21    pub handle_is_correct: bool,
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}