// @generated by `cargo xtask codegen` — do not edit.
// source: lexicons/repo/compare.json (sh.tangled.repo.compare)
#![allow(clippy::all)]
pub const NSID: &str = "sh.tangled.repo.compare";
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct Params {
/// Repository identifier in format 'did:plc:.../repoName'
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 compare(
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
}