pub struct CallPolicy {
pub veto: Option<String>,
pub requires_human: bool,
pub sandbox_escalation: bool,
pub transform: ArgTransform,
}Expand description
The per-call policy verdicts decide folds into the one outcome.
Carries the argument-aware dispatch decision plus the sandbox-escalation check, already evaluated against the call’s arguments by the caller.
Fields§
§veto: Option<String>A hard policy veto with its reason: the call is blocked without a human prompt and a human approval cannot satisfy it. Takes precedence over everything else.
requires_human: boolThe argument-aware policy (or the tool’s intrinsic gate) demands a human decision for this call regardless of capabilities.
sandbox_escalation: boolThe sandbox would deny this call before any side effect and the deployment escalates such denials to a human instead of running into the flat denial.
transform: ArgTransformThe argument transform to honor when the call is allowed.
Trait Implementations§
Source§impl Clone for CallPolicy
impl Clone for CallPolicy
Source§fn clone(&self) -> CallPolicy
fn clone(&self) -> CallPolicy
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 moreSource§impl Debug for CallPolicy
impl Debug for CallPolicy
Source§impl Default for CallPolicy
impl Default for CallPolicy
Source§fn default() -> CallPolicy
fn default() -> CallPolicy
Returns the “default value” for a type. Read more
impl Eq for CallPolicy
Source§impl PartialEq for CallPolicy
impl PartialEq for CallPolicy
impl StructuralPartialEq for CallPolicy
Auto Trait Implementations§
impl Freeze for CallPolicy
impl RefUnwindSafe for CallPolicy
impl Send for CallPolicy
impl Sync for CallPolicy
impl Unpin for CallPolicy
impl UnsafeUnpin for CallPolicy
impl UnwindSafe for CallPolicy
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