pub struct ExplainOptions {
pub workspace_root: Option<PathBuf>,
pub force_workspace_prod: Option<bool>,
pub force_burst: Option<bool>,
pub force_repeatedly_approved: bool,
pub force_recently_denied: bool,
}Expand description
Options that shape an explain run beyond just the input descriptor.
Defaults mirror the engine’s behaviour on a vanilla tools/call
in a non-prod workspace with no burst and no recent denies.
Fields§
§workspace_root: Option<PathBuf>If Some, probe this directory for prod-ness instead of relying on the workspace defaults baked into the policy.
force_workspace_prod: Option<bool>Override workspace prod inference (useful for “what if this was a prod call?” scenarios). Wins over the probe.
force_burst: Option<bool>Pretend the burst detector says we’re in a burst. Useful for reproducing decisions captured during a high-traffic window.
force_repeatedly_approved: boolPretend the same fingerprint has been repeatedly approved. Drives the decision-memory demotion path.
force_recently_denied: boolPretend the same fingerprint had a recent deny. Drives the decision-memory escalation path.
Trait Implementations§
Source§impl Clone for ExplainOptions
impl Clone for ExplainOptions
Source§fn clone(&self) -> ExplainOptions
fn clone(&self) -> ExplainOptions
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 ExplainOptions
impl Debug for ExplainOptions
Source§impl Default for ExplainOptions
impl Default for ExplainOptions
Source§fn default() -> ExplainOptions
fn default() -> ExplainOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExplainOptions
impl RefUnwindSafe for ExplainOptions
impl Send for ExplainOptions
impl Sync for ExplainOptions
impl Unpin for ExplainOptions
impl UnsafeUnpin for ExplainOptions
impl UnwindSafe for ExplainOptions
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