1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: tools.ozone.moderation.getEvent
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 GetEvent {
20 pub id: i64,
21}
22
23impl jacquard_common::IntoStatic for GetEvent {
24 type Output = GetEvent;
25 fn into_static(self) -> Self::Output {
26 self
27 }
28}
29
30#[jacquard_derive::lexicon]
31#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
32#[serde(rename_all = "camelCase")]
33pub struct GetEventOutput<'a> {
34 #[serde(flatten)]
35 #[serde(borrow)]
36 pub value: crate::tools_ozone::moderation::ModEventViewDetail<'a>,
37}
38
39impl jacquard_common::IntoStatic for GetEventOutput<'_> {
40 type Output = GetEventOutput<'static>;
41 fn into_static(self) -> Self::Output {
42 GetEventOutput {
43 value: self.value.into_static(),
44 extra_data: self.extra_data.into_static(),
45 }
46 }
47}
48
49impl jacquard_common::types::xrpc::XrpcRequest for GetEvent {
50 const NSID: &'static str = "tools.ozone.moderation.getEvent";
51 const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
52 const OUTPUT_ENCODING: &'static str = "application/json";
53 type Output<'de> = GetEventOutput<'de>;
54 type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>;
55}