// @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, jacquard_derive::IntoStatic )] #[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>, >, } #[jacquard_derive::lexicon] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic )] #[serde(rename_all = "camelCase")] pub struct UpsertSetOutput<'a> { #[serde(flatten)] #[serde(borrow)] pub value: crate::tools_ozone::set::SetView<'a>, } ///Response type for ///tools.ozone.set.upsertSet pub struct UpsertSetResponse; impl jacquard_common::xrpc::XrpcResp for UpsertSetResponse { const NSID: &'static str = "tools.ozone.set.upsertSet"; const ENCODING: &'static str = "application/json"; type Output<'de> = UpsertSetOutput<'de>; type Err<'de> = jacquard_common::xrpc::GenericError<'de>; } impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpsertSet<'de> { const NSID: &'static str = "tools.ozone.set.upsertSet"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( "application/json", ); type Response = UpsertSetResponse; } ///Endpoint type for ///tools.ozone.set.upsertSet pub struct UpsertSetRequest; impl jacquard_common::xrpc::XrpcEndpoint for UpsertSetRequest { const PATH: &'static str = "/xrpc/tools.ozone.set.upsertSet"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( "application/json", ); type Request<'de> = UpsertSet<'de>; type Response = UpsertSetResponse; }