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