// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: tools.ozone.moderation.getRepos // // 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 GetRepos<'a> { #[serde(borrow)] pub dids: Vec>, } impl jacquard_common::IntoStatic for GetRepos<'_> { type Output = GetRepos<'static>; fn into_static(self) -> Self::Output { GetRepos { dids: self.dids.into_static(), } } } #[jacquard_derive::lexicon] #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct GetReposOutput<'a> { #[serde(borrow)] pub repos: Vec>, } impl jacquard_common::IntoStatic for GetReposOutput<'_> { type Output = GetReposOutput<'static>; fn into_static(self) -> Self::Output { GetReposOutput { repos: self.repos.into_static(), extra_data: self.extra_data.into_static(), } } } impl jacquard_common::types::xrpc::XrpcRequest for GetRepos<'_> { const NSID: &'static str = "tools.ozone.moderation.getRepos"; const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; const OUTPUT_ENCODING: &'static str = "application/json"; type Output<'de> = GetReposOutput<'de>; type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>; }