pub struct RunManifest {Show 14 fields
pub manifest_version: u32,
pub run_id: String,
pub export_name: String,
pub started_at: String,
pub finished_at: String,
pub status: ManifestStatus,
pub source: ManifestSource,
pub destination: ManifestDestination,
pub format: String,
pub compression: String,
pub schema_fingerprint: String,
pub row_count: i64,
pub part_count: u32,
pub parts: Vec<ManifestPart>,
}Expand description
Public, stable JSON shape for the run manifest.
One manifest is written per run_id per export. See ADR-0012 M4
(Append-Only Per Run) for the resume-across-interruption story.
Fields§
§manifest_version: u32§run_id: String§export_name: String§started_at: String§finished_at: String§status: ManifestStatus§source: ManifestSource§destination: ManifestDestination§format: String§compression: String§schema_fingerprint: Stringxxh3 fingerprint of the column schema; see crate::state::schema_fingerprint.
row_count: i64§part_count: u32§parts: Vec<ManifestPart>Implementations§
Source§impl RunManifest
impl RunManifest
Sourcepub fn committed_rows(&self) -> i64
pub fn committed_rows(&self) -> i64
Sum of rows across Committed parts. Used by M5 sanity checks and
by --reconcile to compare against source COUNT(*).
Sourcepub fn committed_part_count(&self) -> usize
pub fn committed_part_count(&self) -> usize
Number of Committed parts.
Sourcepub fn validate_self_consistency(&self) -> Result<(), ManifestInconsistency>
pub fn validate_self_consistency(&self) -> Result<(), ManifestInconsistency>
Verify that the recorded aggregates (row_count, part_count) match
the actual Committed parts in parts. A mismatch is a writer bug;
callers should refuse to act on the manifest until investigated.
Trait Implementations§
Source§impl Clone for RunManifest
impl Clone for RunManifest
Source§fn clone(&self) -> RunManifest
fn clone(&self) -> RunManifest
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 RunManifest
impl Debug for RunManifest
Source§impl<'de> Deserialize<'de> for RunManifest
impl<'de> Deserialize<'de> for RunManifest
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 PartialEq for RunManifest
impl PartialEq for RunManifest
Source§fn eq(&self, other: &RunManifest) -> bool
fn eq(&self, other: &RunManifest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RunManifest
impl Serialize for RunManifest
impl StructuralPartialEq for RunManifest
Auto Trait Implementations§
impl Freeze for RunManifest
impl RefUnwindSafe for RunManifest
impl Send for RunManifest
impl Sync for RunManifest
impl Unpin for RunManifest
impl UnsafeUnpin for RunManifest
impl UnwindSafe for RunManifest
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