pub struct Unit {
pub id: String,
pub title: String,
pub session_key: String,
pub plan_path: Option<String>,
pub extra_env: Vec<(String, String)>,
}Expand description
A single unit of work to be dispatched. Drivers map their domain objects (backlog nodes, fleet projects, …) to this common shape.
Fields§
§id: StringStable identifier, e.g. ab-XXXXXXXX for a backlog node.
title: StringHuman-readable title for log output.
session_key: StringCorrelation key matched against termination events’ data.session_id.
For target sessions this is the session identifier written into the
target-state.md manifest; for other drivers it is whatever key the
dispatcher embeds in its events.
plan_path: Option<String>Optional plan path for context (not used by the runtime itself).
extra_env: Vec<(String, String)>Driver-specific extra env vars to inject into the child process. The runtime passes these through to the Dispatcher without inspecting them; TargetQueue leaves this empty.
Auto Trait Implementations§
impl Freeze for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnsafeUnpin for Unit
impl UnwindSafe for Unit
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