pub struct SubstrateWorkspaceSpec {
pub template: String,
pub name: String,
pub env_names: Vec<String>,
pub idle_after_hours: Option<f64>,
}Expand description
What one provision asks the substrate to create. env_names are secret
NAMES (the contract’s validated secrets[]) — values never cross this
boundary.
Fields§
§template: StringThe pinned template/image id (from workspace.remote.template).
name: StringThe mission-owned workspace name (kranz-remote-<mission id>).
env_names: Vec<String>Secret NAMES the substrate injects from its own secret store.
idle_after_hours: Option<f64>Substrate-side idle policy VALUE (workspace.remote.idleAfterHours,
ticket workspace-idle-hibernate): hours of inactivity after which
the SUBSTRATE hibernates the workspace. Passed through verbatim when
the substrate accepts an idle policy — the substrate owns
scheduling/execution; kranz never schedules. None = no idle
policy requested.
Trait Implementations§
Source§impl Clone for SubstrateWorkspaceSpec
impl Clone for SubstrateWorkspaceSpec
Source§fn clone(&self) -> SubstrateWorkspaceSpec
fn clone(&self) -> SubstrateWorkspaceSpec
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 SubstrateWorkspaceSpec
impl Debug for SubstrateWorkspaceSpec
Source§impl PartialEq for SubstrateWorkspaceSpec
impl PartialEq for SubstrateWorkspaceSpec
impl StructuralPartialEq for SubstrateWorkspaceSpec
Auto Trait Implementations§
impl Freeze for SubstrateWorkspaceSpec
impl RefUnwindSafe for SubstrateWorkspaceSpec
impl Send for SubstrateWorkspaceSpec
impl Sync for SubstrateWorkspaceSpec
impl Unpin for SubstrateWorkspaceSpec
impl UnsafeUnpin for SubstrateWorkspaceSpec
impl UnwindSafe for SubstrateWorkspaceSpec
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