pub struct PipelineCheckpoint {
pub phase: PipelinePhase,
pub iteration: u32,
pub total_iterations: u32,
pub reviewer_pass: u32,
pub total_reviewer_passes: u32,
pub timestamp: String,
pub developer_agent: String,
pub reviewer_agent: String,
}Expand description
Pipeline checkpoint for resume functionality.
Contains all state needed to resume an interrupted pipeline from where it left off, including iteration counts, agent names, and the timestamp when the checkpoint was saved.
Fields§
§phase: PipelinePhaseCurrent pipeline phase
iteration: u32Current iteration number (for developer iterations)
total_iterations: u32Total iterations configured
reviewer_pass: u32Current reviewer pass number
total_reviewer_passes: u32Total reviewer passes configured
timestamp: StringTimestamp when checkpoint was saved
developer_agent: StringDeveloper agent name
reviewer_agent: StringReviewer agent name
Implementations§
Source§impl PipelineCheckpoint
impl PipelineCheckpoint
Sourcepub fn new(
phase: PipelinePhase,
iteration: u32,
total_iterations: u32,
reviewer_pass: u32,
total_reviewer_passes: u32,
developer_agent: &str,
reviewer_agent: &str,
) -> Self
pub fn new( phase: PipelinePhase, iteration: u32, total_iterations: u32, reviewer_pass: u32, total_reviewer_passes: u32, developer_agent: &str, reviewer_agent: &str, ) -> Self
Create a new checkpoint with the given state.
§Arguments
phase- Current pipeline phaseiteration- Current developer iteration numbertotal_iterations- Total developer iterations configuredreviewer_pass- Current reviewer pass numbertotal_reviewer_passes- Total reviewer passes configureddeveloper_agent- Name of the developer agentreviewer_agent- Name of the reviewer agent
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Get a human-readable description of the checkpoint.
Returns a string describing the current phase and progress, suitable for display to the user when resuming.
Trait Implementations§
Source§impl Clone for PipelineCheckpoint
impl Clone for PipelineCheckpoint
Source§fn clone(&self) -> PipelineCheckpoint
fn clone(&self) -> PipelineCheckpoint
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 PipelineCheckpoint
impl Debug for PipelineCheckpoint
Source§impl<'de> Deserialize<'de> for PipelineCheckpoint
impl<'de> Deserialize<'de> for PipelineCheckpoint
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
Auto Trait Implementations§
impl Freeze for PipelineCheckpoint
impl RefUnwindSafe for PipelineCheckpoint
impl Send for PipelineCheckpoint
impl Sync for PipelineCheckpoint
impl Unpin for PipelineCheckpoint
impl UnwindSafe for PipelineCheckpoint
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