pub struct WorkspaceContract {
pub schema_version: u32,
pub bootstrap: Vec<String>,
pub services: Vec<ServiceSpec>,
pub readiness: Vec<String>,
pub data: Option<DataHooks>,
pub previews: Vec<PreviewSpec>,
pub secrets: Vec<String>,
pub disk: Option<DiskHints>,
pub mounts: Vec<String>,
}Fields§
§schema_version: u32Schema version; only 1 is understood. Missing or any other value
fails closed — a newer contract must not be silently half-read.
bootstrap: Vec<String>Ordered setup commands, cwd relative to the workspace root.
services: Vec<ServiceSpec>§readiness: Vec<String>Checks that must pass before the first worker turn.
data: Option<DataHooks>§previews: Vec<PreviewSpec>§secrets: Vec<String>Names the provider must inject — never values.
disk: Option<DiskHints>§mounts: Vec<String>Paths the provider must make writable outside the worktree (see the module docs’ mount/cache-dir convention).
Trait Implementations§
Source§impl Clone for WorkspaceContract
impl Clone for WorkspaceContract
Source§fn clone(&self) -> WorkspaceContract
fn clone(&self) -> WorkspaceContract
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 WorkspaceContract
impl Debug for WorkspaceContract
Source§impl<'de> Deserialize<'de> for WorkspaceContract
impl<'de> Deserialize<'de> for WorkspaceContract
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 WorkspaceContract
Source§impl PartialEq for WorkspaceContract
impl PartialEq for WorkspaceContract
impl StructuralPartialEq for WorkspaceContract
Auto Trait Implementations§
impl Freeze for WorkspaceContract
impl RefUnwindSafe for WorkspaceContract
impl Send for WorkspaceContract
impl Sync for WorkspaceContract
impl Unpin for WorkspaceContract
impl UnsafeUnpin for WorkspaceContract
impl UnwindSafe for WorkspaceContract
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