Something went wrong. Try again.
Rust CLI for tangled
Something went wrong. Try again.
995 B · 30 lines
Rust
12345678910111213141516171819202122232425262728293031// @generated by `cargo xtask codegen` — do not edit.// source: lexicons/git/temp/getDiff.json (sh.tangled.git.temp.getDiff)
#![allow(clippy::all)]
pub const NSID: &str = "sh.tangled.git.temp.getDiff";
#[derive(Debug, Clone, Default, serde::Serialize)]pub struct Params { /// DID of the repository pub repo: String, /// First revision (commit, branch, or tag) pub rev1: String, /// Second revision (commit, branch, or tag) pub rev2: String,}
////// Errors:/// - `RepoNotFound`: Repository not found or access denied/// - `RevisionNotFound`: One or both revisions not found/// - `InvalidRequest`: Invalid request parameters/// - `CompareError`: Failed to compare revisions////// The response body is binary; use [`crate::xrpc::send_bytes`].pub fn get_diff(http: &reqwest::Client, base: &str, params: &Params) -> reqwest::RequestBuilder { let rb = http.get(crate::xrpc::xrpc_url(base, NSID)); let rb = crate::xrpc::push_query(rb, params); rb}