// @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, jacquard_derive::IntoStatic )] #[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetEvent { pub id: i64, } #[jacquard_derive::lexicon] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic )] #[serde(rename_all = "camelCase")] pub struct GetEventOutput<'a> { #[serde(flatten)] #[serde(borrow)] pub value: crate::tools_ozone::moderation::ModEventViewDetail<'a>, } ///Response type for ///tools.ozone.moderation.getEvent pub struct GetEventResponse; impl jacquard_common::xrpc::XrpcResp for GetEventResponse { const NSID: &'static str = "tools.ozone.moderation.getEvent"; const ENCODING: &'static str = "application/json"; type Output<'de> = GetEventOutput<'de>; type Err<'de> = jacquard_common::xrpc::GenericError<'de>; } impl jacquard_common::xrpc::XrpcRequest for GetEvent { const NSID: &'static str = "tools.ozone.moderation.getEvent"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetEventResponse; } ///Endpoint type for ///tools.ozone.moderation.getEvent pub struct GetEventRequest; impl jacquard_common::xrpc::XrpcEndpoint for GetEventRequest { const PATH: &'static str = "/xrpc/tools.ozone.moderation.getEvent"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Request<'de> = GetEvent; type Response = GetEventResponse; }