pub struct CloudCreateSandboxRequest {Show 15 fields
pub name: String,
pub image: String,
pub vcpus: u8,
pub memory_mib: u32,
pub env: HashMap<String, String>,
pub ephemeral: bool,
pub workdir: Option<String>,
pub shell: Option<String>,
pub entrypoint: Option<Vec<String>>,
pub hostname: Option<String>,
pub user: Option<String>,
pub log_level: Option<String>,
pub scripts: HashMap<String, String>,
pub max_duration_secs: Option<u64>,
pub idle_timeout_secs: Option<u64>,
}Expand description
Wire shape of a cloud sandbox create request body.
Fields§
§name: StringUser-facing sandbox name.
image: StringOCI image reference to run.
vcpus: u8Virtual CPU count.
memory_mib: u32Guest memory in MiB.
env: HashMap<String, String>Environment variables injected into the sandbox.
ephemeral: boolWhether the sandbox should be removed when its allocation terminates.
workdir: Option<String>Working directory inside the guest.
shell: Option<String>Default shell inside the guest.
entrypoint: Option<Vec<String>>OCI entrypoint override.
hostname: Option<String>Guest hostname override.
user: Option<String>Guest user identity.
log_level: Option<String>Runtime log verbosity.
scripts: HashMap<String, String>Named scripts mounted into the guest.
max_duration_secs: Option<u64>Hard sandbox lifetime cap in seconds.
idle_timeout_secs: Option<u64>Idle timeout in seconds.
Trait Implementations§
Source§impl Clone for CloudCreateSandboxRequest
impl Clone for CloudCreateSandboxRequest
Source§fn clone(&self) -> CloudCreateSandboxRequest
fn clone(&self) -> CloudCreateSandboxRequest
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 CloudCreateSandboxRequest
impl Debug for CloudCreateSandboxRequest
Source§impl Default for CloudCreateSandboxRequest
impl Default for CloudCreateSandboxRequest
Source§impl<'de> Deserialize<'de> for CloudCreateSandboxRequestwhere
CloudCreateSandboxRequest: Default,
impl<'de> Deserialize<'de> for CloudCreateSandboxRequestwhere
CloudCreateSandboxRequest: Default,
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 CloudCreateSandboxRequest
impl RefUnwindSafe for CloudCreateSandboxRequest
impl Send for CloudCreateSandboxRequest
impl Sync for CloudCreateSandboxRequest
impl Unpin for CloudCreateSandboxRequest
impl UnsafeUnpin for CloudCreateSandboxRequest
impl UnwindSafe for CloudCreateSandboxRequest
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