pub struct ValidationStats {
pub version: String,
pub list_count: usize,
pub node_count: usize,
pub field_count: usize,
pub seen_ids: HashSet<String>,
}Expand description
Statistics collected during streaming validation.
Provides detailed statistics about the parsed document including entity counts, field counts, and ID tracking for reference validation.
Fields§
§version: StringHEDL version string
list_count: usizeNumber of lists encountered
node_count: usizeTotal number of nodes processed
field_count: usizeTotal number of fields across all nodes
seen_ids: HashSet<String>Set of seen IDs for strict reference validation (type:id format)
Implementations§
Trait Implementations§
Source§impl Clone for ValidationStats
impl Clone for ValidationStats
Source§fn clone(&self) -> ValidationStats
fn clone(&self) -> ValidationStats
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 ValidationStats
impl Debug for ValidationStats
Source§impl Default for ValidationStats
impl Default for ValidationStats
Source§fn default() -> ValidationStats
fn default() -> ValidationStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ValidationStats
impl RefUnwindSafe for ValidationStats
impl Send for ValidationStats
impl Sync for ValidationStats
impl Unpin for ValidationStats
impl UnwindSafe for ValidationStats
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> 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