#[non_exhaustive]pub enum CodingPolicyClass {
Show 19 variants
ReadWorkspace,
ListWorkspace,
SearchWorkspace,
WriteWorkspace,
ApplyPatch,
GitRead,
GitMutation,
GitDestructiveMutation,
TestCommand,
BuildCommand,
LintCommand,
PackageInstall,
NetworkCommand,
ShellCommand,
PtyCommand,
DestructiveCommand,
UnknownCommand,
McpTrusted,
McpUntrusted,
}Expand description
Coding-specific operation class used by conservative policy presets.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ReadWorkspace
Read a workspace file.
ListWorkspace
List workspace files.
SearchWorkspace
Search workspace content.
WriteWorkspace
Write a workspace file.
ApplyPatch
Apply a workspace patch.
GitRead
Read git state.
GitMutation
Mutate git state.
GitDestructiveMutation
Destructively mutate git state.
TestCommand
Host-allowlisted test command.
BuildCommand
Host-allowlisted build command.
LintCommand
Host-allowlisted lint command.
PackageInstall
Package manager install/update command.
NetworkCommand
Command that can perform network I/O.
ShellCommand
Shell command such as sh -c or bash -lc.
PtyCommand
Command requesting a PTY.
DestructiveCommand
Destructive command.
UnknownCommand
Command that does not match a safer known class.
McpTrusted
Trusted MCP operation.
McpUntrusted
Untrusted MCP operation.
Trait Implementations§
Source§impl Clone for CodingPolicyClass
impl Clone for CodingPolicyClass
Source§impl Debug for CodingPolicyClass
impl Debug for CodingPolicyClass
Source§impl<'de> Deserialize<'de> for CodingPolicyClass
impl<'de> Deserialize<'de> for CodingPolicyClass
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 CodingPolicyClass
Source§impl Ord for CodingPolicyClass
impl Ord for CodingPolicyClass
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CodingPolicyClass
impl PartialEq for CodingPolicyClass
Source§impl PartialOrd for CodingPolicyClass
impl PartialOrd for CodingPolicyClass
Source§impl Serialize for CodingPolicyClass
impl Serialize for CodingPolicyClass
impl StructuralPartialEq for CodingPolicyClass
Auto Trait Implementations§
impl Freeze for CodingPolicyClass
impl RefUnwindSafe for CodingPolicyClass
impl Send for CodingPolicyClass
impl Sync for CodingPolicyClass
impl Unpin for CodingPolicyClass
impl UnsafeUnpin for CodingPolicyClass
impl UnwindSafe for CodingPolicyClass
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.