A better Rust ATProto crate
at main 2.0 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: app.ocho.edu.getVerificationUrl 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 GetVerificationUrl<'a> { 21 #[serde(borrow)] 22 #[builder(into)] 23 pub domain: jacquard_common::CowStr<'a>, 24} 25 26/// The intent data 27#[jacquard_derive::lexicon] 28#[derive( 29 serde::Serialize, 30 serde::Deserialize, 31 Debug, 32 Clone, 33 PartialEq, 34 Eq, 35 jacquard_derive::IntoStatic, 36 Default 37)] 38#[serde(rename_all = "camelCase")] 39pub struct GetVerificationUrlOutput<'a> { 40 #[serde(borrow)] 41 pub url: jacquard_common::CowStr<'a>, 42} 43 44///Response type for 45///app.ocho.edu.getVerificationUrl 46pub struct GetVerificationUrlResponse; 47impl jacquard_common::xrpc::XrpcResp for GetVerificationUrlResponse { 48 const NSID: &'static str = "app.ocho.edu.getVerificationUrl"; 49 const ENCODING: &'static str = "application/json"; 50 type Output<'de> = GetVerificationUrlOutput<'de>; 51 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 52} 53 54impl<'a> jacquard_common::xrpc::XrpcRequest for GetVerificationUrl<'a> { 55 const NSID: &'static str = "app.ocho.edu.getVerificationUrl"; 56 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 57 type Response = GetVerificationUrlResponse; 58} 59 60///Endpoint type for 61///app.ocho.edu.getVerificationUrl 62pub struct GetVerificationUrlRequest; 63impl jacquard_common::xrpc::XrpcEndpoint for GetVerificationUrlRequest { 64 const PATH: &'static str = "/xrpc/app.ocho.edu.getVerificationUrl"; 65 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; 66 type Request<'de> = GetVerificationUrl<'de>; 67 type Response = GetVerificationUrlResponse; 68}