pub struct CreateSandboxRequest {Show 13 fields
pub template: Option<String>,
pub kind: Option<String>,
pub cpu: Option<u32>,
pub mem_mb: Option<u32>,
pub disk_gb: Option<u32>,
pub envs: Option<HashMap<String, String>>,
pub metadata: Option<HashMap<String, String>>,
pub timeout_ms: Option<u64>,
pub from_snapshot: Option<String>,
pub lifecycle: Option<Lifecycle>,
pub resolution: Option<String>,
pub record: Option<bool>,
pub volumes: Option<Vec<VolumeAttachment>>,
}Expand description
Wire body for POST /sandboxes. Null/unset fields are omitted.
Fields§
§template: Option<String>§kind: Option<String>§cpu: Option<u32>§mem_mb: Option<u32>§disk_gb: Option<u32>§envs: Option<HashMap<String, String>>§metadata: Option<HashMap<String, String>>§timeout_ms: Option<u64>§from_snapshot: Option<String>§lifecycle: Option<Lifecycle>§resolution: Option<String>Initial display resolution, e.g. "1280x720". Desktops only.
record: Option<bool>Record the session server-side; the response carries a presigned playback
URL. Desktops only — record on a headless sandbox is rejected (400
RecordingRequiresDesktop).
volumes: Option<Vec<VolumeAttachment>>Persistent volumes to mount before the session starts.
Trait Implementations§
Source§impl Clone for CreateSandboxRequest
impl Clone for CreateSandboxRequest
Source§fn clone(&self) -> CreateSandboxRequest
fn clone(&self) -> CreateSandboxRequest
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 CreateSandboxRequest
impl Debug for CreateSandboxRequest
Source§impl Default for CreateSandboxRequest
impl Default for CreateSandboxRequest
Source§fn default() -> CreateSandboxRequest
fn default() -> CreateSandboxRequest
Returns the “default value” for a type. Read more
Source§impl From<CreateOptions> for CreateSandboxRequest
impl From<CreateOptions> for CreateSandboxRequest
Source§fn from(o: CreateOptions) -> Self
fn from(o: CreateOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreateSandboxRequest
impl RefUnwindSafe for CreateSandboxRequest
impl Send for CreateSandboxRequest
impl Sync for CreateSandboxRequest
impl Unpin for CreateSandboxRequest
impl UnsafeUnpin for CreateSandboxRequest
impl UnwindSafe for CreateSandboxRequest
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