A better Rust ATProto crate
at lifetimes 2.3 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 bon::Builder, 17 jacquard_derive::IntoStatic 18)] 19#[serde(rename_all = "camelCase")] 20#[builder(start_fn = new)] 21pub struct PutHostingUrl<'a> { 22 ///The expo push token 23 #[serde(borrow)] 24 #[builder(into)] 25 pub url: jacquard_common::CowStr<'a>, 26 #[serde(flatten)] 27 #[serde(borrow)] 28 #[builder(default)] 29 pub extra_data: ::std::collections::BTreeMap< 30 ::jacquard_common::smol_str::SmolStr, 31 ::jacquard_common::types::value::Data<'a>, 32 >, 33} 34 35#[jacquard_derive::lexicon] 36#[derive( 37 serde::Serialize, 38 serde::Deserialize, 39 Debug, 40 Clone, 41 PartialEq, 42 Eq, 43 jacquard_derive::IntoStatic 44)] 45#[serde(rename_all = "camelCase")] 46pub struct PutHostingUrlOutput<'a> { 47 pub success: bool, 48} 49 50///Response type for 51///app.ocho.plugin.putHostingUrl 52pub struct PutHostingUrlResponse; 53impl jacquard_common::xrpc::XrpcResp for PutHostingUrlResponse { 54 const NSID: &'static str = "app.ocho.plugin.putHostingUrl"; 55 const ENCODING: &'static str = "application/json"; 56 type Output<'de> = PutHostingUrlOutput<'de>; 57 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 58} 59 60impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for PutHostingUrl<'de> { 61 const NSID: &'static str = "app.ocho.plugin.putHostingUrl"; 62 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 63 "application/json", 64 ); 65 type Response = PutHostingUrlResponse; 66} 67 68///Endpoint type for 69///app.ocho.plugin.putHostingUrl 70pub struct PutHostingUrlRequest; 71impl jacquard_common::xrpc::XrpcEndpoint for PutHostingUrlRequest { 72 const PATH: &'static str = "/xrpc/app.ocho.plugin.putHostingUrl"; 73 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 74 "application/json", 75 ); 76 type Request<'de> = PutHostingUrl<'de>; 77 type Response = PutHostingUrlResponse; 78}