pub enum Approval {
Ask,
Auto,
Smart,
}Expand description
What the CLI does when a tool’s policy is ask.
Variants§
Ask
Prompt. The default, and the only setting that lets you see what a tool is about to do.
Auto
Never prompt: behave as if --yes were always passed.
Smart
Ask the aux route (#340). An ask-policy call is put to a cheap model as allow,
deny or escalate; only the escalate costs a card. A deny policy is untouched —
the judge may clear a call that was going to be asked about, never widen the registry —
and every doubt (a dead route, a timeout, an answer in the wrong words) escalates, because
a timeout that read as “carry on” would be a command nobody approved.
Trait Implementations§
impl Copy for Approval
Source§impl<'de> Deserialize<'de> for Approval
impl<'de> Deserialize<'de> for Approval
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 Approval
impl StructuralPartialEq for Approval
Auto Trait Implementations§
impl Forget for Approval
impl Freeze for Approval
impl Move for Approval
impl RefUnwindSafe for Approval
impl Send for Approval
impl Sync for Approval
impl Unpin for Approval
impl UnsafeUnpin for Approval
impl UnwindSafe for Approval
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.