// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: sh.tangled.repo.deleteBranch // // 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 DeleteBranch<'a> { #[serde(borrow)] #[builder(into)] pub branch: jacquard_common::CowStr<'a>, #[serde(borrow)] pub repo: jacquard_common::types::string::AtUri<'a>, #[serde(flatten)] #[serde(borrow)] #[builder(default)] pub extra_data: ::std::collections::BTreeMap< ::jacquard_common::smol_str::SmolStr, ::jacquard_common::types::value::Data<'a>, >, } ///Response type for ///sh.tangled.repo.deleteBranch pub struct DeleteBranchResponse; impl jacquard_common::xrpc::XrpcResp for DeleteBranchResponse { const NSID: &'static str = "sh.tangled.repo.deleteBranch"; const ENCODING: &'static str = "application/json"; type Output<'de> = (); type Err<'de> = jacquard_common::xrpc::GenericError<'de>; } impl<'a> jacquard_common::xrpc::XrpcRequest for DeleteBranch<'a> { const NSID: &'static str = "sh.tangled.repo.deleteBranch"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( "application/json", ); type Response = DeleteBranchResponse; } ///Endpoint type for ///sh.tangled.repo.deleteBranch pub struct DeleteBranchRequest; impl jacquard_common::xrpc::XrpcEndpoint for DeleteBranchRequest { const PATH: &'static str = "/xrpc/sh.tangled.repo.deleteBranch"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( "application/json", ); type Request<'de> = DeleteBranch<'de>; type Response = DeleteBranchResponse; }