pub struct AuditJsonHeaderInput {
pub schema_version: SchemaVersion,
pub version: ToolVersion,
pub verdict: AuditVerdict,
pub changed_files_count: u32,
pub base_ref: String,
pub base_description: Option<String>,
pub head_sha: Option<String>,
pub elapsed_ms: ElapsedMs,
pub base_snapshot_skipped: Option<bool>,
pub summary: AuditSummary,
pub attribution: AuditAttribution,
}Expand description
Header fields shared by audit JSON and review-brief subtract sections.
Fields§
§schema_version: SchemaVersionOutput schema version of the envelope.
version: ToolVersionFallow version that produced the output.
verdict: AuditVerdictOverall audit verdict.
changed_files_count: u32Number of changed files the audit analyzed.
base_ref: StringGit revision the audit compared against.
base_description: Option<String>Human-readable description of how the base was chosen, such as
merge-base with origin/main; omitted from JSON when None.
head_sha: Option<String>Commit SHA of the analyzed head; omitted from JSON when None.
elapsed_ms: ElapsedMsAudit wall time in milliseconds.
base_snapshot_skipped: Option<bool>Some(true) when the base snapshot was skipped, so no attribution
ran; omitted from JSON when None.
summary: AuditSummaryPer-category issue counts.
attribution: AuditAttributionNew-vs-inherited counts and the configured gate.
Auto Trait Implementations§
impl Freeze for AuditJsonHeaderInput
impl RefUnwindSafe for AuditJsonHeaderInput
impl Send for AuditJsonHeaderInput
impl Sync for AuditJsonHeaderInput
impl Unpin for AuditJsonHeaderInput
impl UnsafeUnpin for AuditJsonHeaderInput
impl UnwindSafe for AuditJsonHeaderInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more