// @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 }