1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.ocho.auth.googleCallback
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 GoogleCallback<'a> {
21 #[serde(borrow)]
22 #[builder(into)]
23 pub code: jacquard_common::CowStr<'a>,
24 #[serde(borrow)]
25 #[builder(into)]
26 pub state: jacquard_common::CowStr<'a>,
27}
28
29///Response type for
30///app.ocho.auth.googleCallback
31pub struct GoogleCallbackResponse;
32impl jacquard_common::xrpc::XrpcResp for GoogleCallbackResponse {
33 const NSID: &'static str = "app.ocho.auth.googleCallback";
34 const ENCODING: &'static str = "application/json";
35 type Output<'de> = ();
36 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
37}
38
39impl<'a> jacquard_common::xrpc::XrpcRequest for GoogleCallback<'a> {
40 const NSID: &'static str = "app.ocho.auth.googleCallback";
41 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
42 type Response = GoogleCallbackResponse;
43}
44
45///Endpoint type for
46///app.ocho.auth.googleCallback
47pub struct GoogleCallbackRequest;
48impl jacquard_common::xrpc::XrpcEndpoint for GoogleCallbackRequest {
49 const PATH: &'static str = "/xrpc/app.ocho.auth.googleCallback";
50 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
51 type Request<'de> = GoogleCallback<'de>;
52 type Response = GoogleCallbackResponse;
53}