pub struct CreateOptions {Show 14 fields
pub template: 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 ttl_seconds: Option<u64>,
pub from_snapshot: Option<String>,
pub isolation: Option<String>,
pub lifecycle: Option<Lifecycle>,
pub resolution: Option<String>,
pub record: Option<bool>,
pub volumes: Option<Vec<VolumeAttachment>>,
}Expand description
Options accepted by POST /sandboxes (headless sandbox flavour).
Fields§
§template: 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>§ttl_seconds: Option<u64>Legacy, gateway-side FALLBACK idle window in seconds, only used when
timeout_ms is unset — prefer timeout_ms.
from_snapshot: Option<String>§isolation: Option<String>VM isolation tier: "shared" (sandbox-only), "dedicated" (default)
or "hardened" (own VM, no outbound network). See types::CreateSandboxRequest::isolation.
lifecycle: Option<Lifecycle>§resolution: Option<String>Initial display resolution, e.g. "1280x720". Desktops only — a headless
sandbox has no display.
record: Option<bool>Record the session server-side; the create response carries a presigned playback URL. Desktops only.
volumes: Option<Vec<VolumeAttachment>>Persistent volumes to mount before the session starts.
Trait Implementations§
Source§impl Clone for CreateOptions
impl Clone for CreateOptions
Source§impl Default for CreateOptions
impl Default for CreateOptions
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 CreateOptions
impl RefUnwindSafe for CreateOptions
impl Send for CreateOptions
impl Sync for CreateOptions
impl Unpin for CreateOptions
impl UnsafeUnpin for CreateOptions
impl UnwindSafe for CreateOptions
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