pub struct DispatchRecord {
pub task_id: String,
pub task_prompt_path: String,
pub plan_snapshot_path: String,
pub worktree: String,
pub worktree_abs_path: String,
pub branch: String,
pub execution_mode: String,
pub pr_group: String,
pub base_branch: String,
pub workflow_role: String,
}Expand description
Stable, sorted JSON object written to dispatch-<TASK_ID>.json.
Field order matches the canonical contract.
Deprecation note (Task 1.4): worktree is retained verbatim for
backwards compatibility with existing v1 readers. New consumers should
read worktree_abs_path instead — both fields carry the canonical
absolute path under
<state-dir>/out/plan-issue-delivery/<slug>/issue-<N>/worktrees/,
but worktree_abs_path is the explicit, self-describing name and will
remain stable across future refactors. worktree may eventually be
removed in a v3 schema bump.
Fields§
§task_id: String§task_prompt_path: String§plan_snapshot_path: String§worktree: StringDeprecated alias for worktree_abs_path; kept for v1 readers.
worktree_abs_path: StringCanonical absolute path of the assigned worktree (Task 1.4).
branch: String§execution_mode: String§pr_group: String§base_branch: String§workflow_role: StringImplementations§
Source§impl DispatchRecord
impl DispatchRecord
pub fn implementation( task_id: impl Into<String>, task_prompt_path: impl Into<String>, plan_snapshot_path: impl Into<String>, worktree_abs_path: impl Into<String>, branch: impl Into<String>, execution_mode: impl Into<String>, pr_group: impl Into<String>, base_branch: impl Into<String>, ) -> Self
pub fn to_pretty_json(&self) -> String
Trait Implementations§
Source§impl Clone for DispatchRecord
impl Clone for DispatchRecord
Source§impl Debug for DispatchRecord
impl Debug for DispatchRecord
Source§impl<'de> Deserialize<'de> for DispatchRecord
impl<'de> Deserialize<'de> for DispatchRecord
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 DispatchRecord
Source§impl PartialEq for DispatchRecord
impl PartialEq for DispatchRecord
Source§impl Serialize for DispatchRecord
impl Serialize for DispatchRecord
impl StructuralPartialEq for DispatchRecord
Auto Trait Implementations§
impl Freeze for DispatchRecord
impl RefUnwindSafe for DispatchRecord
impl Send for DispatchRecord
impl Sync for DispatchRecord
impl Unpin for DispatchRecord
impl UnsafeUnpin for DispatchRecord
impl UnwindSafe for DispatchRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.