pub enum PolicyMode {
Auto,
OnRisk,
Always,
ReadOnly,
}Expand description
What runs without a person: [policy] mode, or one agent’s
[agents.<name>] mode. Strictness runs auto < on-risk < always <
read-only.
Variants§
Auto
SCV’s own tools and the requests relayed to it are approved, agent
calls included, and every delegated agent starts in its full mode.
OnRisk
Read-only calls are approved and the rest ask; delegated agents start with no switches, so their own configuration decides.
Always
Every call asks; delegated agents start with no switches.
ReadOnly
Everything but read-only calls is denied, agent calls included.
Implementations§
Trait Implementations§
Source§impl Clone for PolicyMode
impl Clone for PolicyMode
impl Copy for PolicyMode
Source§impl Debug for PolicyMode
impl Debug for PolicyMode
Source§impl Default for PolicyMode
impl Default for PolicyMode
Source§impl<'de> Deserialize<'de> for PolicyMode
impl<'de> Deserialize<'de> for PolicyMode
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
Source§impl Display for PolicyMode
impl Display for PolicyMode
impl Eq for PolicyMode
Source§impl PartialEq for PolicyMode
impl PartialEq for PolicyMode
Source§impl Serialize for PolicyMode
impl Serialize for PolicyMode
impl StructuralPartialEq for PolicyMode
Auto Trait Implementations§
impl Freeze for PolicyMode
impl RefUnwindSafe for PolicyMode
impl Send for PolicyMode
impl Sync for PolicyMode
impl Unpin for PolicyMode
impl UnsafeUnpin for PolicyMode
impl UnwindSafe for PolicyMode
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.