Skip to main content

render_audit_html

Function render_audit_html 

Source
pub fn render_audit_html(
    generated_at: &str,
    repository: &str,
    summary: &AuditSummary,
    commits: &[CommitRecord],
) -> String
Expand description

Render a full HTML audit report from structured data.

Args:

  • generated_at: ISO-8601 timestamp string for the report header.
  • repository: Repository path or identifier shown in the report.
  • summary: Aggregate statistics over the commit set.
  • commits: The commit records to render as table rows.

Usage:

let html = render_audit_html("2024-01-01T00:00:00Z", "org/repo", &summary, &commits);
std::fs::write("report.html", html)?;