pub struct SandboxCommandRequest {
pub platform: SandboxPlatform,
pub command: Vec<OsString>,
pub full_auto: bool,
pub log_denials: bool,
pub config_overrides: Vec<ConfigOverride>,
pub feature_toggles: FeatureToggles,
pub working_dir: Option<PathBuf>,
}Expand description
Request to run an arbitrary command inside a Codex-provided sandbox.
Fields§
§platform: SandboxPlatformTarget platform subcommand; maps to macos (alias seatbelt), linux (alias landlock), or windows.
command: Vec<OsString>Trailing command arguments to execute. Must be non-empty to avoid the upstream CLI panic.
full_auto: boolRequest the workspace-write sandbox preset (--full-auto).
log_denials: boolStream macOS sandbox denials after the child process exits (no-op on other platforms).
config_overrides: Vec<ConfigOverride>Additional --config key=value overrides to pass through.
feature_toggles: FeatureTogglesFeature toggles forwarded to --enable/--disable.
working_dir: Option<PathBuf>Working directory for the spawned command; falls back to the builder value, then the current process directory.
Implementations§
Source§impl SandboxCommandRequest
impl SandboxCommandRequest
pub fn new<I, S>(platform: SandboxPlatform, command: I) -> Self
pub fn full_auto(self, enable: bool) -> Self
pub fn log_denials(self, enable: bool) -> Self
pub fn config_override( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
pub fn config_override_raw(self, raw: impl Into<String>) -> Self
pub fn enable_feature(self, name: impl Into<String>) -> Self
pub fn disable_feature(self, name: impl Into<String>) -> Self
pub fn working_dir(self, dir: impl Into<PathBuf>) -> Self
Trait Implementations§
Source§impl Clone for SandboxCommandRequest
impl Clone for SandboxCommandRequest
Source§fn clone(&self) -> SandboxCommandRequest
fn clone(&self) -> SandboxCommandRequest
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 SandboxCommandRequest
impl Debug for SandboxCommandRequest
Source§impl PartialEq for SandboxCommandRequest
impl PartialEq for SandboxCommandRequest
impl Eq for SandboxCommandRequest
impl StructuralPartialEq for SandboxCommandRequest
Auto Trait Implementations§
impl Freeze for SandboxCommandRequest
impl RefUnwindSafe for SandboxCommandRequest
impl Send for SandboxCommandRequest
impl Sync for SandboxCommandRequest
impl Unpin for SandboxCommandRequest
impl UnsafeUnpin for SandboxCommandRequest
impl UnwindSafe for SandboxCommandRequest
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> 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.