#[non_exhaustive]pub struct WorkspaceConfig {
pub host_path: Option<String>,
pub mount_point: String,
pub read_only: bool,
}Expand description
Workspace mount configuration for an agent.
Controls how the host filesystem is exposed inside the container.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.host_path: Option<String>Host path to mount. If None, auto-generated under the server’s workspace root.
mount_point: StringMount point inside the container. Defaults to "/workspace".
read_only: boolWhether the mount is read-only. Defaults to false.
Implementations§
Source§impl WorkspaceConfig
impl WorkspaceConfig
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a workspace config with defaults (auto-generated path, /workspace mount, read-write).
Sourcepub fn with_host_path(self, path: impl Into<String>) -> Self
pub fn with_host_path(self, path: impl Into<String>) -> Self
Set the host path.
Sourcepub fn with_mount_point(self, mount_point: impl Into<String>) -> Self
pub fn with_mount_point(self, mount_point: impl Into<String>) -> Self
Set the container mount point.
Trait Implementations§
Source§impl Clone for WorkspaceConfig
impl Clone for WorkspaceConfig
Source§fn clone(&self) -> WorkspaceConfig
fn clone(&self) -> WorkspaceConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 WorkspaceConfig
impl Debug for WorkspaceConfig
Source§impl Default for WorkspaceConfig
impl Default for WorkspaceConfig
Source§impl<'de> Deserialize<'de> for WorkspaceConfig
impl<'de> Deserialize<'de> for WorkspaceConfig
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 WorkspaceConfig
impl RefUnwindSafe for WorkspaceConfig
impl Send for WorkspaceConfig
impl Sync for WorkspaceConfig
impl Unpin for WorkspaceConfig
impl UnsafeUnpin for WorkspaceConfig
impl UnwindSafe for WorkspaceConfig
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