pub struct PipelineState {
pub phase: PipelinePhase,
pub previous_phase: Option<PipelinePhase>,
pub iteration: u32,
pub total_iterations: u32,
pub reviewer_pass: u32,
pub total_reviewer_passes: u32,
pub review_issues_found: bool,
pub context_cleaned: bool,
pub agent_chain: AgentChainState,
pub rebase: RebaseState,
pub commit: CommitState,
pub execution_history: Vec<ExecutionStep>,
}Expand description
Immutable pipeline state (this IS the checkpoint).
Contains all information needed to resume pipeline execution at any point. The reducer updates this state by returning new immutable copies on each event.
Fields§
§phase: PipelinePhase§previous_phase: Option<PipelinePhase>§iteration: u32§total_iterations: u32§reviewer_pass: u32§total_reviewer_passes: u32§review_issues_found: bool§context_cleaned: bool§agent_chain: AgentChainState§rebase: RebaseState§commit: CommitState§execution_history: Vec<ExecutionStep>Implementations§
Source§impl PipelineState
impl PipelineState
pub fn initial(developer_iters: u32, reviewer_reviews: u32) -> Self
pub fn is_complete(&self) -> bool
pub fn current_head(&self) -> String
Trait Implementations§
Source§impl Clone for PipelineState
impl Clone for PipelineState
Source§fn clone(&self) -> PipelineState
fn clone(&self) -> PipelineState
Returns a duplicate of the value. Read more
1.0.0 · 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 PipelineState
impl Debug for PipelineState
Source§impl<'de> Deserialize<'de> for PipelineState
impl<'de> Deserialize<'de> for PipelineState
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
Source§impl From<PipelineCheckpoint> for PipelineState
Convert v3 checkpoint to reducer PipelineState.
impl From<PipelineCheckpoint> for PipelineState
Convert v3 checkpoint to reducer PipelineState.
Migrates existing checkpoint structure to new state format, ensuring backward compatibility with saved checkpoints.
Source§fn from(checkpoint: PipelineCheckpoint) -> Self
fn from(checkpoint: PipelineCheckpoint) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PipelineState
impl RefUnwindSafe for PipelineState
impl Send for PipelineState
impl Sync for PipelineState
impl Unpin for PipelineState
impl UnwindSafe for PipelineState
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,
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