tangled_api/lexicon/sh/tangled/git/temp/
get_commit.rs1#![allow(clippy::all)]
5
6pub const NSID: &str = "sh.tangled.git.temp.getCommit";
7
8#[derive(Debug, Clone, Default, serde::Serialize)]
9pub struct Params {
10 pub r#ref: String,
12 pub repo: String,
14}
15
16pub type Output = crate::lexicon::sh::tangled::git::temp::defs::Commit;
17
18pub fn get_commit(
25 http: &reqwest::Client,
26 base: &str,
27 params: &Params,
28) -> reqwest::RequestBuilder {
29 let rb = http.get(crate::xrpc::xrpc_url(base, NSID));
30 let rb = rb.header(reqwest::header::ACCEPT, "application/json");
31 let rb = crate::xrpc::push_query(rb, params);
32 rb
33}