pub struct FileValidationReport {
pub file_issues: Vec<FileIssue>,
pub messages: Vec<ValidationReport>,
}Expand description
Result of validating a .tgm file.
Fields§
§file_issues: Vec<FileIssue>Issues at the file level (gaps, trailing bytes, truncated messages).
messages: Vec<ValidationReport>Per-message validation reports.
Implementations§
Source§impl FileValidationReport
impl FileValidationReport
Sourcepub fn is_ok(&self) -> bool
pub fn is_ok(&self) -> bool
Returns true when there are no file-level issues and all messages pass.
File-level issues (gaps, trailing bytes) are treated as failures because they indicate the file is not well-formed — even though individual messages within it may be valid.
pub fn total_objects(&self) -> usize
pub fn hash_verified(&self) -> bool
Trait Implementations§
Source§impl Clone for FileValidationReport
impl Clone for FileValidationReport
Source§fn clone(&self) -> FileValidationReport
fn clone(&self) -> FileValidationReport
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 FileValidationReport
impl Debug for FileValidationReport
Source§impl Serialize for FileValidationReport
impl Serialize for FileValidationReport
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for FileValidationReport
impl RefUnwindSafe for FileValidationReport
impl Send for FileValidationReport
impl Sync for FileValidationReport
impl Unpin for FileValidationReport
impl UnsafeUnpin for FileValidationReport
impl UnwindSafe for FileValidationReport
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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