1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: tools.ozone.set.addValues
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)]
18#[serde(rename_all = "camelCase")]
19#[builder(start_fn = new)]
20pub struct AddValues<'a> {
21 ///Name of the set to add values to
22 #[serde(borrow)]
23 #[builder(into)]
24 pub name: jacquard_common::CowStr<'a>,
25 ///Array of string values to add to the set
26 #[serde(borrow)]
27 pub values: Vec<jacquard_common::CowStr<'a>>,
28 #[serde(flatten)]
29 #[serde(borrow)]
30 #[builder(default)]
31 pub extra_data: ::std::collections::BTreeMap<
32 ::jacquard_common::smol_str::SmolStr,
33 ::jacquard_common::types::value::Data<'a>,
34 >,
35}
36
37impl jacquard_common::IntoStatic for AddValues<'_> {
38 type Output = AddValues<'static>;
39 fn into_static(self) -> Self::Output {
40 AddValues {
41 name: self.name.into_static(),
42 values: self.values.into_static(),
43 extra_data: self.extra_data.into_static(),
44 }
45 }
46}
47
48impl jacquard_common::types::xrpc::XrpcRequest for AddValues<'_> {
49 const NSID: &'static str = "tools.ozone.set.addValues";
50 const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
51 "application/json",
52 );
53 const OUTPUT_ENCODING: &'static str = "application/json";
54 type Output<'de> = ();
55 type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>;
56}