A better Rust ATProto crate
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(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 10#[serde(rename_all = "camelCase")] 11pub struct UpsertSet<'a> { 12 #[serde(flatten)] 13 #[serde(borrow)] 14 pub value: crate::tools_ozone::set::Set<'a>, 15} 16 17impl jacquard_common::IntoStatic for UpsertSet<'_> { 18 type Output = UpsertSet<'static>; 19 fn into_static(self) -> Self::Output { 20 UpsertSet { 21 value: self.value.into_static(), 22 extra_data: self.extra_data.into_static(), 23 } 24 } 25} 26 27#[jacquard_derive::lexicon] 28#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 29#[serde(rename_all = "camelCase")] 30pub struct UpsertSetOutput<'a> { 31 #[serde(flatten)] 32 #[serde(borrow)] 33 pub value: crate::tools_ozone::set::SetView<'a>, 34} 35 36impl jacquard_common::IntoStatic for UpsertSetOutput<'_> { 37 type Output = UpsertSetOutput<'static>; 38 fn into_static(self) -> Self::Output { 39 UpsertSetOutput { 40 value: self.value.into_static(), 41 extra_data: self.extra_data.into_static(), 42 } 43 } 44} 45 46impl jacquard_common::types::xrpc::XrpcRequest for UpsertSet<'_> { 47 const NSID: &'static str = "tools.ozone.set.upsertSet"; 48 const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 49 "application/json", 50 ); 51 const OUTPUT_ENCODING: &'static str = "application/json"; 52 type Output<'de> = UpsertSetOutput<'de>; 53 type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>; 54}