pub struct ParseResult {
pub root: Value,
pub mode: Mode,
pub locked: bool,
pub tool: bool,
pub schema: bool,
pub llm: bool,
pub metadata: HashMap<String, MetaMap>,
pub includes: Vec<IncludeDirective>,
pub uses: Vec<UseDirective>,
}Expand description
Full parse result with metadata.
Fields§
§root: Value§mode: Mode§locked: bool§tool: bool!tool directive — file describes an LLM tool call or schema.
schema: bool!schema directive (combined with !tool) — file describes tool definitions.
llm: bool!llm directive — file is an LLM-oriented envelope (semantic hints for tools; data tree unchanged).
metadata: HashMap<String, MetaMap>Metadata for each nesting level, keyed by dot-path prefix. “” = root level, “server” = server sub-object, etc.
includes: Vec<IncludeDirective>!include directives parsed from the file.
uses: Vec<UseDirective>!use directives parsed from the file (package imports).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParseResult
impl RefUnwindSafe for ParseResult
impl Send for ParseResult
impl Sync for ParseResult
impl Unpin for ParseResult
impl UnsafeUnpin for ParseResult
impl UnwindSafe for ParseResult
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