pub struct ProcessPolicy {
pub allow_shell: bool,
pub allowed_commands: Vec<String>,
pub blocked_commands: Vec<String>,
pub max_execution_seconds: u32,
}Expand description
Process execution policy for a sandboxed agent.
Fields§
§allow_shell: boolWhether the agent can execute shell commands.
allowed_commands: Vec<String>Allowed command names (empty = none allowed unless allow_shell is true).
blocked_commands: Vec<String>Blocked command patterns (takes precedence over allowed).
max_execution_seconds: u32Maximum execution time per command in seconds.
Trait Implementations§
Source§impl Clone for ProcessPolicy
impl Clone for ProcessPolicy
Source§fn clone(&self) -> ProcessPolicy
fn clone(&self) -> ProcessPolicy
Returns a duplicate of the value. Read more
1.0.0 · 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 ProcessPolicy
impl Debug for ProcessPolicy
Source§impl Default for ProcessPolicy
impl Default for ProcessPolicy
Source§fn default() -> ProcessPolicy
fn default() -> ProcessPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProcessPolicy
impl<'de> Deserialize<'de> for ProcessPolicy
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
Auto Trait Implementations§
impl Freeze for ProcessPolicy
impl RefUnwindSafe for ProcessPolicy
impl Send for ProcessPolicy
impl Sync for ProcessPolicy
impl Unpin for ProcessPolicy
impl UnsafeUnpin for ProcessPolicy
impl UnwindSafe for ProcessPolicy
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