A better Rust ATProto crate
at oauth 1.8 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: tools.ozone.moderation.getReporterStats 4// 5// This file was automatically generated from Lexicon schemas. 6// Any manual changes will be overwritten on the next regeneration. 7 8#[derive( 9 serde::Serialize, 10 serde::Deserialize, 11 Debug, 12 Clone, 13 PartialEq, 14 Eq, 15 bon::Builder 16)] 17#[builder(start_fn = new)] 18#[serde(rename_all = "camelCase")] 19pub struct GetReporterStats<'a> { 20 #[serde(borrow)] 21 pub dids: Vec<jacquard_common::types::string::Did<'a>>, 22} 23 24impl jacquard_common::IntoStatic for GetReporterStats<'_> { 25 type Output = GetReporterStats<'static>; 26 fn into_static(self) -> Self::Output { 27 GetReporterStats { 28 dids: self.dids.into_static(), 29 } 30 } 31} 32 33#[jacquard_derive::lexicon] 34#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 35#[serde(rename_all = "camelCase")] 36pub struct GetReporterStatsOutput<'a> { 37 #[serde(borrow)] 38 pub stats: Vec<crate::tools_ozone::moderation::ReporterStats<'a>>, 39} 40 41impl jacquard_common::IntoStatic for GetReporterStatsOutput<'_> { 42 type Output = GetReporterStatsOutput<'static>; 43 fn into_static(self) -> Self::Output { 44 GetReporterStatsOutput { 45 stats: self.stats.into_static(), 46 extra_data: self.extra_data.into_static(), 47 } 48 } 49} 50 51impl jacquard_common::types::xrpc::XrpcRequest for GetReporterStats<'_> { 52 const NSID: &'static str = "tools.ozone.moderation.getReporterStats"; 53 const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 54 const OUTPUT_ENCODING: &'static str = "application/json"; 55 type Output<'de> = GetReporterStatsOutput<'de>; 56 type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>; 57}