pub struct CommandSpec {
pub argv: Vec<String>,
pub cwd: Option<String>,
pub env: BTreeMap<String, SecretRef>,
pub shell: bool,
pub timeout_ms: u64,
pub memory_bytes: u64,
pub cpu_millis: u64,
pub max_processes: u32,
pub network: CommandNetworkPolicy,
pub disk_bytes: u64,
pub max_output_bytes: usize,
}Fields§
§argv: Vec<String>§cwd: Option<String>§env: BTreeMap<String, SecretRef>§shell: bool§timeout_ms: u64§memory_bytes: u64§cpu_millis: u64§max_processes: u32§network: CommandNetworkPolicyWhether provider-side egress is denied or permitted for this command. Providers must reject unsupported policy rather than silently ignore it.
disk_bytes: u64Maximum additional writable bytes for the command sandbox.
max_output_bytes: usizeTrait Implementations§
Source§impl Clone for CommandSpec
impl Clone for CommandSpec
Source§fn clone(&self) -> CommandSpec
fn clone(&self) -> CommandSpec
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 CommandSpec
impl Debug for CommandSpec
Source§impl<'de> Deserialize<'de> for CommandSpec
impl<'de> Deserialize<'de> for CommandSpec
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 CommandSpec
Source§impl PartialEq for CommandSpec
impl PartialEq for CommandSpec
Source§impl Serialize for CommandSpec
impl Serialize for CommandSpec
impl StructuralPartialEq for CommandSpec
Auto Trait Implementations§
impl Freeze for CommandSpec
impl RefUnwindSafe for CommandSpec
impl Send for CommandSpec
impl Sync for CommandSpec
impl Unpin for CommandSpec
impl UnsafeUnpin for CommandSpec
impl UnwindSafe for CommandSpec
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