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(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
10#[serde(rename_all = "camelCase")]
11pub struct AddValues<'a> {
12 ///Name of the set to add values to
13 #[serde(borrow)]
14 pub name: jacquard_common::CowStr<'a>,
15 ///Array of string values to add to the set
16 #[serde(borrow)]
17 pub values: Vec<jacquard_common::CowStr<'a>>,
18}
19
20impl jacquard_common::IntoStatic for AddValues<'_> {
21 type Output = AddValues<'static>;
22 fn into_static(self) -> Self::Output {
23 AddValues {
24 name: self.name.into_static(),
25 values: self.values.into_static(),
26 extra_data: self.extra_data.into_static(),
27 }
28 }
29}
30
31impl jacquard_common::types::xrpc::XrpcRequest for AddValues<'_> {
32 const NSID: &'static str = "tools.ozone.set.addValues";
33 const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
34 "application/json",
35 );
36 const OUTPUT_ENCODING: &'static str = "application/json";
37 type Output<'de> = ();
38 type Err<'de> = jacquard_common::types::xrpc::GenericError<'de>;
39}