pub struct CheckCmdReport {
pub command_line: String,
pub decision: Decision,
pub primary: Option<PrimaryFinding>,
}Expand description
Wire-shape result a caller (CLI dispatcher) uses to drive process
exit + banner printing. Kept distinct from Decision so we can
add shim-specific fields later (e.g. captured argv for the audit
log) without churning the engine types.
Fields§
§command_line: StringReconstructed command line, useful for the banner and the JSON-Lines audit record.
decision: DecisionThe decision the engine returned for the canonical shell call.
primary: Option<PrimaryFinding>The single most-severe rule that fired, if any (for the banner).
Implementations§
Trait Implementations§
Source§impl Clone for CheckCmdReport
impl Clone for CheckCmdReport
Source§fn clone(&self) -> CheckCmdReport
fn clone(&self) -> CheckCmdReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CheckCmdReport
impl RefUnwindSafe for CheckCmdReport
impl Send for CheckCmdReport
impl Sync for CheckCmdReport
impl Unpin for CheckCmdReport
impl UnsafeUnpin for CheckCmdReport
impl UnwindSafe for CheckCmdReport
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