1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.ocho.server.swapLaunchToken
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 SwapLaunchToken<'a> {
21 #[serde(borrow)]
22 #[builder(into)]
23 pub launch_token: jacquard_common::CowStr<'a>,
24}
25
26#[jacquard_derive::lexicon]
27#[derive(
28 serde::Serialize,
29 serde::Deserialize,
30 Debug,
31 Clone,
32 PartialEq,
33 Eq,
34 jacquard_derive::IntoStatic,
35 Default
36)]
37#[serde(rename_all = "camelCase")]
38pub struct SwapLaunchTokenOutput<'a> {
39 /// The did of the user
40 #[serde(skip_serializing_if = "std::option::Option::is_none")]
41 #[serde(borrow)]
42 pub did: std::option::Option<jacquard_common::types::string::Did<'a>>,
43 #[serde(skip_serializing_if = "std::option::Option::is_none")]
44 #[serde(borrow)]
45 pub handle: std::option::Option<jacquard_common::CowStr<'a>>,
46 #[serde(skip_serializing_if = "std::option::Option::is_none")]
47 #[serde(borrow)]
48 pub name: std::option::Option<jacquard_common::CowStr<'a>>,
49 #[serde(borrow)]
50 pub token: jacquard_common::CowStr<'a>,
51}
52
53///Response type for
54///app.ocho.server.swapLaunchToken
55pub struct SwapLaunchTokenResponse;
56impl jacquard_common::xrpc::XrpcResp for SwapLaunchTokenResponse {
57 const NSID: &'static str = "app.ocho.server.swapLaunchToken";
58 const ENCODING: &'static str = "application/json";
59 type Output<'de> = SwapLaunchTokenOutput<'de>;
60 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
61}
62
63impl<'a> jacquard_common::xrpc::XrpcRequest for SwapLaunchToken<'a> {
64 const NSID: &'static str = "app.ocho.server.swapLaunchToken";
65 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
66 type Response = SwapLaunchTokenResponse;
67}
68
69///Endpoint type for
70///app.ocho.server.swapLaunchToken
71pub struct SwapLaunchTokenRequest;
72impl jacquard_common::xrpc::XrpcEndpoint for SwapLaunchTokenRequest {
73 const PATH: &'static str = "/xrpc/app.ocho.server.swapLaunchToken";
74 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
75 type Request<'de> = SwapLaunchToken<'de>;
76 type Response = SwapLaunchTokenResponse;
77}