pub struct WorkspaceManifest { /* private fields */ }Expand description
Workspace manifest describing folders and sandbox options.
Implementations§
Source§impl WorkspaceManifest
impl WorkspaceManifest
Sourcepub fn new(
name: String,
folders: Vec<PathBuf>,
sandbox: SandboxConfig,
) -> Result<Self, ManifestError>
pub fn new( name: String, folders: Vec<PathBuf>, sandbox: SandboxConfig, ) -> Result<Self, ManifestError>
Create a workspace manifest.
§Arguments
name- Stable workspace name used for session routing.folders- One or more project folders included in the workspace.sandbox- Runtime options applied when launching the sandbox.
§Returns
A validated workspace manifest.
§Errors
Returns ManifestError::EmptyName when name is blank.
Returns ManifestError::NoFolders when no folders are provided.
Sourcepub fn with_runtime(
name: String,
folders: Vec<PathBuf>,
sandbox: SandboxConfig,
runtime: RuntimeConfig,
) -> Result<Self, ManifestError>
pub fn with_runtime( name: String, folders: Vec<PathBuf>, sandbox: SandboxConfig, runtime: RuntimeConfig, ) -> Result<Self, ManifestError>
Create a workspace manifest with runtime settings.
§Arguments
name- Stable workspace name used for session routing.folders- One or more project folders included in the workspace.sandbox- Runtime sandbox options applied when launching the sandbox.runtime- Container runtime image settings for this workspace.
§Returns
A validated workspace manifest.
§Errors
Returns ManifestError::EmptyName when name is blank.
Returns ManifestError::NoFolders when no folders are provided.
Returns ManifestError::EmptyRuntimeImage when runtime.image is blank.
Sourcepub fn sandbox(&self) -> &SandboxConfig
pub fn sandbox(&self) -> &SandboxConfig
Sourcepub fn runtime(&self) -> &RuntimeConfig
pub fn runtime(&self) -> &RuntimeConfig
Trait Implementations§
Source§impl Clone for WorkspaceManifest
impl Clone for WorkspaceManifest
Source§fn clone(&self) -> WorkspaceManifest
fn clone(&self) -> WorkspaceManifest
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 WorkspaceManifest
impl Debug for WorkspaceManifest
impl Eq for WorkspaceManifest
Source§impl PartialEq for WorkspaceManifest
impl PartialEq for WorkspaceManifest
Source§fn eq(&self, other: &WorkspaceManifest) -> bool
fn eq(&self, other: &WorkspaceManifest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WorkspaceManifest
Auto Trait Implementations§
impl Freeze for WorkspaceManifest
impl RefUnwindSafe for WorkspaceManifest
impl Send for WorkspaceManifest
impl Sync for WorkspaceManifest
impl Unpin for WorkspaceManifest
impl UnsafeUnpin for WorkspaceManifest
impl UnwindSafe for WorkspaceManifest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.