pub fn validate<P: AsRef<Path>>(path: P) -> Result<ValidationReport>Expand description
Validate the Acta v0.2 structure of path under the default Limits.
This is the inexpensive metadata-only level. It covers the prologue, frame
envelopes and CRCs, the schema frame’s column descriptors, and each data
frame’s block header. It does not decode logical streams or inspect claims
that require values, such as TS_SORTED ordering and optional statistics.
Use validate_with_options with ValidationLevel::Full for that more
expensive pass.
A complete file returns a report whose incomplete_tail method is false.
If the file ends inside a frame after its schema frame, validation succeeds
with that method returning true and last_good_offset identifying the
byte after the last complete frame. A complete but corrupt frame returns an
error, as does a file that ends before its schema frame is complete.