#[non_exhaustive]pub struct BudgetReport {
pub breached: Option<BudgetBreach>,
pub events: usize,
pub aliases: usize,
pub anchors: usize,
pub recorded_anchor_events: usize,
pub recorded_anchor_bytes: usize,
pub documents: usize,
pub nodes: usize,
pub max_depth: usize,
pub total_scalar_bytes: usize,
pub total_comment_bytes: usize,
pub merge_keys: usize,
}Expand description
Summary of the scan (even if no breach).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.breached: Option<BudgetBreach>Some(..) if a limit was exceeded; None if all budgets were respected.
events: usizeTotal number of parser events observed.
aliases: usizeTotal number of alias events (*ref).
anchors: usizeTotal number of distinct anchors that were defined (by id).
recorded_anchor_events: usizeCumulative number of event copies attempted for anchor retention.
recorded_anchor_bytes: usizeCumulative owned string payload bytes attempted for retained anchor events.
documents: usizeTotal number of YAML documents in the stream.
nodes: usizeTotal number of nodes encountered (scalars + sequence starts + mapping starts).
max_depth: usizeMaximum structural nesting depth reached at any point in the stream.
total_scalar_bytes: usizeSum of bytes across all scalar values (Scalar.value.len()), saturating on overflow.
total_comment_bytes: usizeSum of bytes across all comment values, saturating on overflow.
merge_keys: usizeTotal number of merge keys (<<) encountered while merge-key expansion was enabled.
Trait Implementations§
Source§impl Clone for BudgetReport
impl Clone for BudgetReport
Source§fn clone(&self) -> BudgetReport
fn clone(&self) -> BudgetReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more