1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: sh.tangled.repo.addSecret
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 jacquard_derive::IntoStatic
18)]
19#[serde(rename_all = "camelCase")]
20#[builder(start_fn = new)]
21pub struct AddSecret<'a> {
22 #[serde(borrow)]
23 #[builder(into)]
24 pub key: jacquard_common::CowStr<'a>,
25 #[serde(borrow)]
26 pub repo: jacquard_common::types::string::AtUri<'a>,
27 #[serde(borrow)]
28 #[builder(into)]
29 pub value: jacquard_common::CowStr<'a>,
30 #[serde(flatten)]
31 #[serde(borrow)]
32 #[builder(default)]
33 pub extra_data: ::std::collections::BTreeMap<
34 ::jacquard_common::smol_str::SmolStr,
35 ::jacquard_common::types::value::Data<'a>,
36 >,
37}
38
39///Response type for
40///sh.tangled.repo.addSecret
41pub struct AddSecretResponse;
42impl jacquard_common::xrpc::XrpcResp for AddSecretResponse {
43 const NSID: &'static str = "sh.tangled.repo.addSecret";
44 const ENCODING: &'static str = "application/json";
45 type Output<'de> = ();
46 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
47}
48
49impl<'a> jacquard_common::xrpc::XrpcRequest for AddSecret<'a> {
50 const NSID: &'static str = "sh.tangled.repo.addSecret";
51 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
52 "application/json",
53 );
54 type Response = AddSecretResponse;
55}
56
57///Endpoint type for
58///sh.tangled.repo.addSecret
59pub struct AddSecretRequest;
60impl jacquard_common::xrpc::XrpcEndpoint for AddSecretRequest {
61 const PATH: &'static str = "/xrpc/sh.tangled.repo.addSecret";
62 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
63 "application/json",
64 );
65 type Request<'de> = AddSecret<'de>;
66 type Response = AddSecretResponse;
67}