pub struct SandboxConfig {
pub level: SandboxLevel,
pub allow_paths: Vec<PathBuf>,
pub allow_network: bool,
pub home: Option<PathBuf>,
}Fields§
§level: SandboxLevel§allow_paths: Vec<PathBuf>Paths exempted from the secrets deny-list, or granted
read+write in strict mode (beyond the defaults).
allow_network: boolstrict only: permit outbound/inbound network. secrets
leaves the network alone – most MCP servers need it.
home: Option<PathBuf>Home directory override (tests use a temp dir).
Trait Implementations§
Source§impl Clone for SandboxConfig
impl Clone for SandboxConfig
Source§fn clone(&self) -> SandboxConfig
fn clone(&self) -> SandboxConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SandboxConfig
impl Debug for SandboxConfig
Auto Trait Implementations§
impl Freeze for SandboxConfig
impl RefUnwindSafe for SandboxConfig
impl Send for SandboxConfig
impl Sync for SandboxConfig
impl Unpin for SandboxConfig
impl UnsafeUnpin for SandboxConfig
impl UnwindSafe for SandboxConfig
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