pub struct RuleResult {
pub rule: String,
pub passed: bool,
pub enforcement: Enforcement,
pub message: String,
pub details: Option<String>,
}Expand description
Result of evaluating a single policy rule.
Fields§
§rule: StringRule identifier (e.g., “slsa.minimum_level”, “signatures.attestation”)
passed: boolWhether the rule passed
enforcement: EnforcementEnforcement mode for this rule
message: StringHuman-readable message explaining the result
details: Option<String>Optional additional details
Implementations§
Source§impl RuleResult
impl RuleResult
Sourcepub fn causes_failure(&self) -> bool
pub fn causes_failure(&self) -> bool
Returns true if this failure should cause overall policy to fail
Trait Implementations§
Source§impl Clone for RuleResult
impl Clone for RuleResult
Source§fn clone(&self) -> RuleResult
fn clone(&self) -> RuleResult
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 RuleResult
impl RefUnwindSafe for RuleResult
impl Send for RuleResult
impl Sync for RuleResult
impl Unpin for RuleResult
impl UnwindSafe for RuleResult
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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