// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: tools.ozone.set.upsertSet // // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder )] #[serde(rename_all = "camelCase")] #[builder(start_fn = new)] pub struct UpsertSet<'a> { #[serde(flatten)] #[serde(borrow)] pub value: crate::tools_ozone::set::Set<'a>, #[serde(flatten)] #[serde(borrow)] #[builder(default)] pub extra_data: ::std::collections::BTreeMap< ::jacquard_common::smol_str::SmolStr, ::jacquard_common::types::value::Data<'a>, >, } impl jacquard_common::IntoStatic for UpsertSet<'_> { type Output = UpsertSet<'static>; fn into_static(self) -> Self::Output { UpsertSet { value: self.value.into_static(), extra_data: self.extra_data.into_static(), } } } #[jacquard_derive::lexicon] #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct UpsertSetOutput<'a> { #[serde(flatten)] #[serde(borrow)] pub value: crate::tools_ozone::set::SetView<'a>, } impl jacquard_common::IntoStatic for UpsertSetOutput<'_> { type Output = UpsertSetOutput<'static>; fn into_static(self) -> Self::Output { UpsertSetOutput { value: self.value.into_static(), extra_data: self.extra_data.into_static(), } } } impl jacquard_common::types::xrpc::XrpcRequest for UpsertSet<'_> { const NSID: &'static str = "tools.ozone.set.upsertSet"; const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( "application/json", ); const OUTPUT_ENCODING: &'static str = "application/json"; type Output<'de> = UpsertSetOutput<'de>; type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>; }