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