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.plugin.putHostingUrl 4// 5// This file was automatically generated from Lexicon schemas. 6// Any manual changes will be overwritten on the next regeneration. 7 8#[jacquard_derive::lexicon] 9#[derive( 10 serde::Serialize, 11 serde::Deserialize, 12 Debug, 13 Clone, 14 PartialEq, 15 Eq, 16 jacquard_derive::IntoStatic, 17 Default 18)] 19#[serde(rename_all = "camelCase")] 20pub struct PutHostingUrl<'a> { 21 /// The expo push token 22 #[serde(borrow)] 23 pub url: 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)] 36#[serde(rename_all = "camelCase")] 37pub struct PutHostingUrlOutput<'a> { 38 pub success: bool, 39} 40 41///Response type for 42///app.ocho.plugin.putHostingUrl 43pub struct PutHostingUrlResponse; 44impl jacquard_common::xrpc::XrpcResp for PutHostingUrlResponse { 45 const NSID: &'static str = "app.ocho.plugin.putHostingUrl"; 46 const ENCODING: &'static str = "application/json"; 47 type Output<'de> = PutHostingUrlOutput<'de>; 48 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 49} 50 51impl<'a> jacquard_common::xrpc::XrpcRequest for PutHostingUrl<'a> { 52 const NSID: &'static str = "app.ocho.plugin.putHostingUrl"; 53 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 54 "application/json", 55 ); 56 type Response = PutHostingUrlResponse; 57} 58 59///Endpoint type for 60///app.ocho.plugin.putHostingUrl 61pub struct PutHostingUrlRequest; 62impl jacquard_common::xrpc::XrpcEndpoint for PutHostingUrlRequest { 63 const PATH: &'static str = "/xrpc/app.ocho.plugin.putHostingUrl"; 64 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 65 "application/json", 66 ); 67 type Request<'de> = PutHostingUrl<'de>; 68 type Response = PutHostingUrlResponse; 69}