pub struct SubtaskOutcome {
pub subtask_id: String,
pub verdict: Option<MergeVerdict>,
pub changes: Vec<FileChange>,
pub patch: Option<String>,
pub error: Option<String>,
}Expand description
Outcome of one farmed-out subtask. verdict is None only if the agent or
workspace failed before the gate could run (captured in error); one
subtask’s failure never aborts the batch. patch (when present) is the git
patch of this subtask’s changes, retained so integrate_and_verify can
replay it into a staging tree after the worktree is gone.
Fields§
§subtask_id: String§verdict: Option<MergeVerdict>§changes: Vec<FileChange>§patch: Option<String>§error: Option<String>Implementations§
Source§impl SubtaskOutcome
impl SubtaskOutcome
pub fn is_accepted(&self) -> bool
Trait Implementations§
Source§impl Debug for SubtaskOutcome
impl Debug for SubtaskOutcome
Source§impl From<&SubtaskOutcome> for SubtaskReportDto
impl From<&SubtaskOutcome> for SubtaskReportDto
Source§fn from(o: &SubtaskOutcome) -> Self
fn from(o: &SubtaskOutcome) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SubtaskOutcome
impl RefUnwindSafe for SubtaskOutcome
impl Send for SubtaskOutcome
impl Sync for SubtaskOutcome
impl Unpin for SubtaskOutcome
impl UnsafeUnpin for SubtaskOutcome
impl UnwindSafe for SubtaskOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more