pub struct ValidationReport { /* private fields */ }Expand description
The result of a sequential Acta v0.2 structural validation.
A report is only produced for a file that contains at least its schema
frame, so frame_count is always one or more.
Implementations§
Source§impl ValidationReport
impl ValidationReport
Sourcepub fn format_version(&self) -> (u16, u16)
pub fn format_version(&self) -> (u16, u16)
The format version the prologue declares.
Sourcepub fn feature_flags(&self) -> u64
pub fn feature_flags(&self) -> u64
The prologue feature flags. Bit zero is ROW_IDS.
Sourcepub fn frame_count(&self) -> u64
pub fn frame_count(&self) -> u64
The number of complete frames, including the schema frame.
pub fn file_size(&self) -> u64
Sourcepub fn last_good_offset(&self) -> u64
pub fn last_good_offset(&self) -> u64
The byte after the last complete frame.
A writer resumes appending here, and a repair tool may truncate here.
Sourcepub fn incomplete_tail(&self) -> bool
pub fn incomplete_tail(&self) -> bool
Whether the file ends inside a frame that is still being appended.
Trait Implementations§
Source§impl Clone for ValidationReport
impl Clone for ValidationReport
Source§fn clone(&self) -> ValidationReport
fn clone(&self) -> ValidationReport
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 moreimpl Copy for ValidationReport
Source§impl Debug for ValidationReport
impl Debug for ValidationReport
impl Eq for ValidationReport
Source§impl PartialEq for ValidationReport
impl PartialEq for ValidationReport
impl StructuralPartialEq for ValidationReport
Auto Trait Implementations§
impl Freeze for ValidationReport
impl RefUnwindSafe for ValidationReport
impl Send for ValidationReport
impl Sync for ValidationReport
impl Unpin for ValidationReport
impl UnsafeUnpin for ValidationReport
impl UnwindSafe for ValidationReport
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