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