pub struct CheckResult {
pub report: Report,
pub output: OutputFeatureFlags,
pub cockpit_receipt: Option<Report>,
pub markdown: String,
pub annotations: String,
pub sarif: String,
pub exit_code: i32,
}Expand description
Result of a coverage check operation.
Fields§
§report: ReportThe domain report (covguard.report.v1, ALL findings, no capabilities).
output: OutputFeatureFlagsRenderer budgets that were used to build outputs for this result.
cockpit_receipt: Option<Report>The cockpit receipt (sensor.report.v1, truncated findings, capabilities).
Only populated when sensor_schema: true (cockpit mode).
markdown: StringMarkdown rendering of the report.
annotations: StringGitHub annotations rendering of the report.
sarif: StringSARIF rendering of the report.
exit_code: i32Exit code for the CLI.
- 0: pass or warn
- 2: policy fail (blocking findings)
- 1: tool/runtime error (not returned here, only via AppError)
Trait Implementations§
Source§impl Clone for CheckResult
impl Clone for CheckResult
Source§fn clone(&self) -> CheckResult
fn clone(&self) -> CheckResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CheckResult
impl RefUnwindSafe for CheckResult
impl Send for CheckResult
impl Sync for CheckResult
impl Unpin for CheckResult
impl UnsafeUnpin for CheckResult
impl UnwindSafe for CheckResult
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