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