pub struct RunJournal {
pub run_id: String,
pub export_name: String,
pub entries: Vec<JournalEntry>,
}Expand description
Canonical in-memory record of a pipeline run.
Accumulated during execution via record(). Query methods let callers
answer the four DoD questions without iterating entries directly.
Fields§
§run_id: String§export_name: String§entries: Vec<JournalEntry>All events in insertion order.
Implementations§
Source§impl RunJournal
impl RunJournal
pub fn new(run_id: impl Into<String>, export_name: impl Into<String>) -> Self
Sourcepub fn plan_snapshot(&self) -> Option<&PlanSnapshot>
pub fn plan_snapshot(&self) -> Option<&PlanSnapshot>
Returns the plan snapshot recorded at the start of the run.
Sourcepub fn files(&self) -> Vec<&JournalEntry>
pub fn files(&self) -> Vec<&JournalEntry>
All FileWritten entries, in the order files were committed.
Sourcepub fn retries(&self) -> Vec<&JournalEntry>
pub fn retries(&self) -> Vec<&JournalEntry>
All RetryAttempted entries.
Sourcepub fn chunk_events(&self) -> Vec<&JournalEntry>
pub fn chunk_events(&self) -> Vec<&JournalEntry>
All chunk lifecycle entries (ChunkStarted, ChunkCompleted, ChunkFailed).
Sourcepub fn quality_issues(&self) -> Vec<&JournalEntry>
pub fn quality_issues(&self) -> Vec<&JournalEntry>
All QualityIssue entries (both FAIL and WARN severity).
Sourcepub fn schema_changes(&self) -> Vec<&JournalEntry>
pub fn schema_changes(&self) -> Vec<&JournalEntry>
All SchemaChanged entries.
Sourcepub fn warnings(&self) -> Vec<&JournalEntry>
pub fn warnings(&self) -> Vec<&JournalEntry>
All Warning and PlanWarning entries.
Sourcepub fn final_outcome(&self) -> Option<&JournalEntry>
pub fn final_outcome(&self) -> Option<&JournalEntry>
The last RunCompleted entry, or None if the run has not yet finished.
Trait Implementations§
Source§impl Clone for RunJournal
impl Clone for RunJournal
Source§fn clone(&self) -> RunJournal
fn clone(&self) -> RunJournal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RunJournal
impl Debug for RunJournal
Source§impl<'de> Deserialize<'de> for RunJournal
impl<'de> Deserialize<'de> for RunJournal
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 RunJournal
impl RefUnwindSafe for RunJournal
impl Send for RunJournal
impl Sync for RunJournal
impl Unpin for RunJournal
impl UnsafeUnpin for RunJournal
impl UnwindSafe for RunJournal
Blanket Implementations§
impl<T> Allocation for T
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