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 jacquard_derive::IntoStatic
17)]
18#[builder(start_fn = new)]
19#[serde(rename_all = "camelCase")]
20pub struct GetEvent {
21 pub id: i64,
22}
23
24#[jacquard_derive::lexicon]
25#[derive(
26 serde::Serialize,
27 serde::Deserialize,
28 Debug,
29 Clone,
30 PartialEq,
31 Eq,
32 jacquard_derive::IntoStatic
33)]
34#[serde(rename_all = "camelCase")]
35pub struct GetEventOutput<'a> {
36 #[serde(flatten)]
37 #[serde(borrow)]
38 pub value: crate::tools_ozone::moderation::ModEventViewDetail<'a>,
39}
40
41///Response type for
42///tools.ozone.moderation.getEvent
43pub struct GetEventResponse;
44impl jacquard_common::xrpc::XrpcResp for GetEventResponse {
45 const NSID: &'static str = "tools.ozone.moderation.getEvent";
46 const ENCODING: &'static str = "application/json";
47 type Output<'de> = GetEventOutput<'de>;
48 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
49}
50
51impl jacquard_common::xrpc::XrpcRequest for GetEvent {
52 const NSID: &'static str = "tools.ozone.moderation.getEvent";
53 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
54 type Response = GetEventResponse;
55}
56
57///Endpoint type for
58///tools.ozone.moderation.getEvent
59pub struct GetEventRequest;
60impl jacquard_common::xrpc::XrpcEndpoint for GetEventRequest {
61 const PATH: &'static str = "/xrpc/tools.ozone.moderation.getEvent";
62 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
63 type Request<'de> = GetEvent;
64 type Response = GetEventResponse;
65}