pub enum Decision {
Allow,
Warn {
rule_id: String,
severity: Severity,
banner: String,
safer_alternative: Option<String>,
},
Approval {
rule_id: String,
severity: Severity,
reason: String,
safer_alternative: Option<String>,
contributing_rules: Vec<String>,
},
IdentityVerification {
rule_id: String,
severity: Severity,
reason: String,
safer_alternative: Option<String>,
contributing_rules: Vec<String>,
requirement: Requirement,
},
Block {
rule_id: String,
severity: Severity,
reason: String,
safer_alternative: Option<String>,
contributing_rules: Vec<String>,
},
}Variants§
Allow
Warn
Approval
Fields
IdentityVerification
The matched rule carried an identity: block AND resolved to a
High-or-higher severity. The caller must check the identity
proof cache and, on miss, surface a verification URL to the
user. Held tool calls block until the proof lands or the hold
window elapses.
Fields
§
requirement: RequirementBlock
Implementations§
Trait Implementations§
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