pub struct Header {
pub version: (u32, u32),
pub mode: ParseMode,
pub aliases: BTreeMap<String, String>,
pub structs: BTreeMap<String, Vec<String>>,
pub struct_counts: BTreeMap<String, usize>,
pub nests: BTreeMap<String, Vec<String>>,
pub prompt: Option<Box<str>>,
pub null_char: char,
pub quote_char: char,
pub counts: BTreeMap<String, CountValue>,
}Expand description
Parsed header data.
Fields§
§version: (u32, u32)HEDL format version as (major, minor).
mode: ParseModeParsing mode (strict or lenient). Default: strict.
aliases: BTreeMap<String, String>Type aliases mapping alias name to original type.
structs: BTreeMap<String, Vec<String>>Struct definitions mapping struct name to field names.
struct_counts: BTreeMap<String, usize>Expected row counts for structs (from count hints).
nests: BTreeMap<String, Vec<String>>Nesting relationships mapping parent type to child types. A parent type can have multiple child types (e.g., Customer > Address, Customer > Order).
prompt: Option<Box<str>>Prompt text for LLM/tooling hints (optional).
null_char: charNull character (default: ~).
quote_char: charQuote character (default: ").
counts: BTreeMap<String, CountValue>Count statistics from %C directives. Key format: “Type.field” or “Type.total”
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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