Something went wrong. Try again.
Rust CLI for tangled
Something went wrong. Try again.
958 B · 29 lines
Rust
123456789101112131415161718192021222324252627282930// @generated by `cargo xtask codegen` — do not edit.// source: lexicons/git/temp/getCommit.json (sh.tangled.git.temp.getCommit)
#![allow(clippy::all)]
pub const NSID: &str = "sh.tangled.git.temp.getCommit";
#[derive(Debug, Clone, Default, serde::Serialize)]pub struct Params { /// reference name to resolve pub r#ref: String, /// DID of the repository pub repo: String,}
pub type Output = crate::lexicon::sh::tangled::git::temp::defs::Commit;
/// resolve commit from given ref////// Errors:/// - `RepoNotFound`: Repository not found or access denied/// - `CommitNotFound`: Commit not found/// - `InvalidRequest`: Invalid request parameterspub fn get_commit(http: &reqwest::Client, base: &str, params: &Params) -> reqwest::RequestBuilder { let rb = http.get(crate::xrpc::xrpc_url(base, NSID)); let rb = rb.header(reqwest::header::ACCEPT, "application/json"); let rb = crate::xrpc::push_query(rb, params); rb}