A better Rust ATProto crate
at lifetimes 2.2 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: tools.ozone.set.upsertSet 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 UpsertSet<'a> { 22 #[serde(flatten)] 23 #[serde(borrow)] 24 pub value: crate::tools_ozone::set::Set<'a>, 25 #[serde(flatten)] 26 #[serde(borrow)] 27 #[builder(default)] 28 pub extra_data: ::std::collections::BTreeMap< 29 ::jacquard_common::smol_str::SmolStr, 30 ::jacquard_common::types::value::Data<'a>, 31 >, 32} 33 34#[jacquard_derive::lexicon] 35#[derive( 36 serde::Serialize, 37 serde::Deserialize, 38 Debug, 39 Clone, 40 PartialEq, 41 Eq, 42 jacquard_derive::IntoStatic 43)] 44#[serde(rename_all = "camelCase")] 45pub struct UpsertSetOutput<'a> { 46 #[serde(flatten)] 47 #[serde(borrow)] 48 pub value: crate::tools_ozone::set::SetView<'a>, 49} 50 51///Response type for 52///tools.ozone.set.upsertSet 53pub struct UpsertSetResponse; 54impl jacquard_common::xrpc::XrpcResp for UpsertSetResponse { 55 const NSID: &'static str = "tools.ozone.set.upsertSet"; 56 const ENCODING: &'static str = "application/json"; 57 type Output<'de> = UpsertSetOutput<'de>; 58 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 59} 60 61impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpsertSet<'de> { 62 const NSID: &'static str = "tools.ozone.set.upsertSet"; 63 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 64 "application/json", 65 ); 66 type Response = UpsertSetResponse; 67} 68 69///Endpoint type for 70///tools.ozone.set.upsertSet 71pub struct UpsertSetRequest; 72impl jacquard_common::xrpc::XrpcEndpoint for UpsertSetRequest { 73 const PATH: &'static str = "/xrpc/tools.ozone.set.upsertSet"; 74 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 75 "application/json", 76 ); 77 type Request<'de> = UpsertSet<'de>; 78 type Response = UpsertSetResponse; 79}