// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: sh.tangled.repo.delete // // 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 Delete<'a> { /// DID of the repository owner #[serde(borrow)] pub did: jacquard_common::types::string::Did<'a>, /// Name of the repository to delete #[serde(borrow)] #[builder(into)] pub name: jacquard_common::CowStr<'a>, /// Rkey of the repository record #[serde(borrow)] #[builder(into)] pub rkey: jacquard_common::CowStr<'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.delete pub struct DeleteResponse; impl jacquard_common::xrpc::XrpcResp for DeleteResponse { const NSID: &'static str = "sh.tangled.repo.delete"; const ENCODING: &'static str = "application/json"; type Output<'de> = (); type Err<'de> = jacquard_common::xrpc::GenericError<'de>; } impl<'a> jacquard_common::xrpc::XrpcRequest for Delete<'a> { const NSID: &'static str = "sh.tangled.repo.delete"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( "application/json", ); type Response = DeleteResponse; } ///Endpoint type for ///sh.tangled.repo.delete pub struct DeleteRequest; impl jacquard_common::xrpc::XrpcEndpoint for DeleteRequest { const PATH: &'static str = "/xrpc/sh.tangled.repo.delete"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( "application/json", ); type Request<'de> = Delete<'de>; type Response = DeleteResponse; }