pub enum Decision {
Allow,
DryRunOnly,
RequireApproval(ApprovalGate),
Deny(DenyReason),
}Expand description
A deterministic, explainable decision from policy.
Variants§
Allow
Allow the action.
DryRunOnly
Allow only as dry-run (must not execute side effects).
RequireApproval(ApprovalGate)
Require an explicit approval gate.
Deny(DenyReason)
Deny the action.
Trait Implementations§
impl Copy for Decision
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 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