pub struct ExpandedFile {
pub version: u32,
pub scenario_name: Option<String>,
pub entries: Vec<ExpandedEntry>,
}Expand description
A v2 scenario file whose pack entries have been fully expanded.
This is the output of expand. Every entry is a concrete signal —
there are no unresolved pack references. Inline entries from the
NormalizedFile pass through verbatim; pack entries are replaced by
one ExpandedEntry per metric in the pack.
§Invariants
- No entry has a
packoroverridesfield — those have been resolved. - Every entry has a concrete
rate,encoder, andsink(inherited fromNormalizedEntry). - Entry IDs remain unique across the file, including auto-generated IDs synthesized for anonymous pack entries.
Fields§
§version: u32Schema version. Always 2 after expansion.
scenario_name: Option<String>File-level scenario_name carried verbatim. Pure metadata —
ignored by every compiler phase, surfaced for runtime conflict checks.
entries: Vec<ExpandedEntry>All entries with pack expansion applied, in source order.
Pack entries contribute one entry per metric, in the order metrics appear in the resolved pack definition. Inline entries contribute one entry each, unchanged from the normalized input.
Trait Implementations§
Source§impl Clone for ExpandedFile
impl Clone for ExpandedFile
Source§fn clone(&self) -> ExpandedFile
fn clone(&self) -> ExpandedFile
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 moreSource§impl Debug for ExpandedFile
impl Debug for ExpandedFile
Auto Trait Implementations§
impl Freeze for ExpandedFile
impl RefUnwindSafe for ExpandedFile
impl Send for ExpandedFile
impl Sync for ExpandedFile
impl Unpin for ExpandedFile
impl UnsafeUnpin for ExpandedFile
impl UnwindSafe for ExpandedFile
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