pub struct Decision {
pub verdict: Verdict,
pub rules: Vec<String>,
pub reasons: Vec<String>,
pub context: Vec<String>,
}Expand description
A verdict with the rule ids and human-readable reasons that produced it.
rules/reasons describe only the matches that carry the final verdict.
Matches with a weaker verdict (e.g. an allow on git status inside a command
that was denied for touching ~/.ssh) are kept in context so the user still
sees the full picture without the headline being noisy.
Fields§
§verdict: VerdictThe strictest verdict across the matched rules.
rules: Vec<String>Ids of the rule groups that produced verdict, in evaluation order, de-duplicated.
reasons: Vec<String>One line per rule in rules.
context: Vec<String>Matches that did not determine the verdict (weaker outcomes), for display/audit.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Decision
impl<'de> Deserialize<'de> for Decision
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Decision
impl StructuralPartialEq for Decision
Auto Trait Implementations§
impl Freeze for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decision
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