pub struct WorkspaceSpec {
pub provider: String,
pub placement: SandboxPlacement,
pub template_id: Option<String>,
pub template_version: Option<String>,
pub image_snapshot_id: Option<String>,
pub mounts: Vec<SandboxMountSpec>,
pub ttl_ms: u64,
pub profile: BTreeMap<String, String>,
}Expand description
Declarative subset of the Workspace CreateSandboxRequest. Evaluate never
builds images or templates; it only references what Workspace published.
Fields§
§provider: String§placement: SandboxPlacement§template_id: Option<String>§template_version: Option<String>§image_snapshot_id: Option<String>Workspace image snapshot. Deliberately not called snapshotId: that
name belongs to the Eval Snapshot and conflating them is a bug factory.
mounts: Vec<SandboxMountSpec>§ttl_ms: u64§profile: BTreeMap<String, String>Trait Implementations§
Source§impl Clone for WorkspaceSpec
impl Clone for WorkspaceSpec
Source§fn clone(&self) -> WorkspaceSpec
fn clone(&self) -> WorkspaceSpec
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 WorkspaceSpec
impl Debug for WorkspaceSpec
Source§impl<'de> Deserialize<'de> for WorkspaceSpec
impl<'de> Deserialize<'de> for WorkspaceSpec
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 WorkspaceSpec
Source§impl PartialEq for WorkspaceSpec
impl PartialEq for WorkspaceSpec
Source§impl Serialize for WorkspaceSpec
impl Serialize for WorkspaceSpec
impl StructuralPartialEq for WorkspaceSpec
Auto Trait Implementations§
impl Freeze for WorkspaceSpec
impl RefUnwindSafe for WorkspaceSpec
impl Send for WorkspaceSpec
impl Sync for WorkspaceSpec
impl Unpin for WorkspaceSpec
impl UnsafeUnpin for WorkspaceSpec
impl UnwindSafe for WorkspaceSpec
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