1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.ocho.plugin.getManifest
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 GetManifest<'a> {
21 #[serde(borrow)]
22 pub did: jacquard_common::types::string::Did<'a>,
23 #[serde(borrow)]
24 #[builder(into)]
25 pub platform: jacquard_common::CowStr<'a>,
26}
27
28#[jacquard_derive::lexicon]
29#[derive(
30 serde::Serialize,
31 serde::Deserialize,
32 Debug,
33 Clone,
34 PartialEq,
35 Eq,
36 jacquard_derive::IntoStatic
37)]
38#[serde(rename_all = "camelCase")]
39pub struct GetManifestOutput<'a> {
40 #[serde(flatten)]
41 #[serde(borrow)]
42 pub value: crate::app_ocho::plugin::Manifest<'a>,
43}
44
45///Response type for
46///app.ocho.plugin.getManifest
47pub struct GetManifestResponse;
48impl jacquard_common::xrpc::XrpcResp for GetManifestResponse {
49 const NSID: &'static str = "app.ocho.plugin.getManifest";
50 const ENCODING: &'static str = "application/json";
51 type Output<'de> = GetManifestOutput<'de>;
52 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
53}
54
55impl<'a> jacquard_common::xrpc::XrpcRequest for GetManifest<'a> {
56 const NSID: &'static str = "app.ocho.plugin.getManifest";
57 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
58 type Response = GetManifestResponse;
59}
60
61///Endpoint type for
62///app.ocho.plugin.getManifest
63pub struct GetManifestRequest;
64impl jacquard_common::xrpc::XrpcEndpoint for GetManifestRequest {
65 const PATH: &'static str = "/xrpc/app.ocho.plugin.getManifest";
66 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
67 type Request<'de> = GetManifest<'de>;
68 type Response = GetManifestResponse;
69}