pub enum Approvals {
Ask,
AllowEdits,
AllowAll,
ReadOnly,
}Expand description
Which tool calls run without asking.
Variants§
Ask
Reads run; writes, network and commands ask.
AllowEdits
Reads and file edits run; network and commands ask.
AllowAll
Everything runs without asking (calls a person must confirm still ask).
ReadOnly
Only reads: writes, network and commands are refused.
Implementations§
Trait Implementations§
impl Copy for Approvals
Source§impl<'de> Deserialize<'de> for Approvals
impl<'de> Deserialize<'de> for Approvals
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Approvals, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Approvals, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Approvals
Source§impl Serialize for Approvals
impl Serialize for Approvals
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Approvals
Auto Trait Implementations§
impl Forget for Approvals
impl Freeze for Approvals
impl Move for Approvals
impl RefUnwindSafe for Approvals
impl Send for Approvals
impl Sync for Approvals
impl Unpin for Approvals
impl UnsafeUnpin for Approvals
impl UnwindSafe for Approvals
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