1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// @generated by `cargo xtask codegen` — do not edit.
// source: lexicons/repo/log.json (sh.tangled.repo.log)
#![allow(clippy::all)]
pub const NSID: &str = "sh.tangled.repo.log";
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct Params {
/// Pagination cursor (commit SHA)
#[serde(skip_serializing_if = "Option::is_none")]
pub cursor: Option<String>,
/// Maximum number of commits to return
#[serde(skip_serializing_if = "Option::is_none")]
pub limit: Option<i64>,
/// Path to filter commits by
#[serde(skip_serializing_if = "Option::is_none")]
pub path: Option<String>,
/// Git reference (branch, tag, or commit SHA)
pub r#ref: String,
/// Repository identifier in format 'did:plc:.../repoName'
pub repo: String,
}
///
/// Errors:
/// - `RepoNotFound`: Repository not found or access denied
/// - `RefNotFound`: Git reference not found
/// - `PathNotFound`: Path not found in repository
/// - `InvalidRequest`: Invalid request parameters
///
/// The response body is binary; use [`crate::xrpc::send_bytes`].
pub fn log(
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
}