// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: com.atproto.sync.listRepos // // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder )] #[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct ListRepos<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] #[builder(into)] pub cursor: std::option::Option>, ///(default: 500, min: 1, max: 1000) #[serde(skip_serializing_if = "std::option::Option::is_none")] pub limit: std::option::Option, } impl jacquard_common::IntoStatic for ListRepos<'_> { type Output = ListRepos<'static>; fn into_static(self) -> Self::Output { ListRepos { cursor: self.cursor.into_static(), limit: self.limit.into_static(), } } } #[jacquard_derive::lexicon] #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct ListReposOutput<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub cursor: std::option::Option>, #[serde(borrow)] pub repos: Vec>, } impl jacquard_common::IntoStatic for ListReposOutput<'_> { type Output = ListReposOutput<'static>; fn into_static(self) -> Self::Output { ListReposOutput { cursor: self.cursor.into_static(), repos: self.repos.into_static(), extra_data: self.extra_data.into_static(), } } } impl jacquard_common::types::xrpc::XrpcRequest for ListRepos<'_> { const NSID: &'static str = "com.atproto.sync.listRepos"; const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; const OUTPUT_ENCODING: &'static str = "application/json"; type Output<'de> = ListReposOutput<'de>; type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>; } #[jacquard_derive::lexicon] #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct Repo<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] pub active: std::option::Option, #[serde(borrow)] pub did: jacquard_common::types::string::Did<'a>, ///Current repo commit CID #[serde(borrow)] pub head: jacquard_common::types::string::Cid<'a>, pub rev: jacquard_common::types::string::Tid, ///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. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub status: std::option::Option>, } impl jacquard_common::IntoStatic for Repo<'_> { type Output = Repo<'static>; fn into_static(self) -> Self::Output { Repo { active: self.active.into_static(), did: self.did.into_static(), head: self.head.into_static(), rev: self.rev.into_static(), status: self.status.into_static(), extra_data: self.extra_data.into_static(), } } }