A better Rust ATProto crate
at main 2.1 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: sh.tangled.repo.delete 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 Delete<'a> { 22 /// DID of the repository owner 23 #[serde(borrow)] 24 pub did: jacquard_common::types::string::Did<'a>, 25 /// Name of the repository to delete 26 #[serde(borrow)] 27 #[builder(into)] 28 pub name: jacquard_common::CowStr<'a>, 29 /// Rkey of the repository record 30 #[serde(borrow)] 31 #[builder(into)] 32 pub rkey: jacquard_common::CowStr<'a>, 33 #[serde(flatten)] 34 #[serde(borrow)] 35 #[builder(default)] 36 pub extra_data: ::std::collections::BTreeMap< 37 ::jacquard_common::smol_str::SmolStr, 38 ::jacquard_common::types::value::Data<'a>, 39 >, 40} 41 42///Response type for 43///sh.tangled.repo.delete 44pub struct DeleteResponse; 45impl jacquard_common::xrpc::XrpcResp for DeleteResponse { 46 const NSID: &'static str = "sh.tangled.repo.delete"; 47 const ENCODING: &'static str = "application/json"; 48 type Output<'de> = (); 49 type Err<'de> = jacquard_common::xrpc::GenericError<'de>; 50} 51 52impl<'a> jacquard_common::xrpc::XrpcRequest for Delete<'a> { 53 const NSID: &'static str = "sh.tangled.repo.delete"; 54 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 55 "application/json", 56 ); 57 type Response = DeleteResponse; 58} 59 60///Endpoint type for 61///sh.tangled.repo.delete 62pub struct DeleteRequest; 63impl jacquard_common::xrpc::XrpcEndpoint for DeleteRequest { 64 const PATH: &'static str = "/xrpc/sh.tangled.repo.delete"; 65 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( 66 "application/json", 67 ); 68 type Request<'de> = Delete<'de>; 69 type Response = DeleteResponse; 70}