A better Rust ATProto crate
at main 1.7 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: app.ocho.auth.githubCallback 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 GithubCallback<'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.githubCallback 31pub struct GithubCallbackResponse; 32impl jacquard_common::xrpc::XrpcResp for GithubCallbackResponse { 33 const NSID: &'static str = "app.ocho.auth.githubCallback"; 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 GithubCallback<'a> { 40 const NSID: &'static str = "app.ocho.auth.githubCallback"; 41 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 42 type Response = GithubCallbackResponse; 43} 44 45///Endpoint type for 46///app.ocho.auth.githubCallback 47pub struct GithubCallbackRequest; 48impl jacquard_common::xrpc::XrpcEndpoint for GithubCallbackRequest { 49 const PATH: &'static str = "/xrpc/app.ocho.auth.githubCallback"; 50 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 51 type Request<'de> = GithubCallback<'de>; 52 type Response = GithubCallbackResponse; 53}