pub struct TaskSpec {
pub task_id: TaskId,
pub label: Option<String>,
pub network: Option<NetworkPolicy>,
pub extra_deny: Vec<PathBuf>,
pub credential_names: Option<Vec<String>>,
pub ttl: Option<TimeDelta>,
pub workspace: Option<PathBuf>,
}Expand description
Requested changes when forking a space for a subtask.
All fields are optional tightenings. Anything that would expand reach
relative to parent is rejected.
Fields§
§task_id: TaskId§label: Option<String>§network: Option<NetworkPolicy>Optional network override (must be ⊆ parent).
extra_deny: Vec<PathBuf>Extra deny paths (always allowed — denies only shrink reach).
credential_names: Option<Vec<String>>Optional credential subset (by name). None = inherit all; Some(vec![]) = none.
ttl: Option<TimeDelta>Optional shorter TTL from now.
workspace: Option<PathBuf>If set, replace workspace root (must be under parent workspace or equal).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskSpec
impl RefUnwindSafe for TaskSpec
impl Send for TaskSpec
impl Sync for TaskSpec
impl Unpin for TaskSpec
impl UnsafeUnpin for TaskSpec
impl UnwindSafe for TaskSpec
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