pub struct CompileResult {
pub schema: Option<Schema>,
pub compiled: Option<CompiledSchema>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
The result of the full compilation pipeline.
Contains both the source-faithful AST and the lowered/type-checked IR, along with all diagnostics produced at every stage.
Fields§
§schema: Option<Schema>The parsed schema AST, or None if a fatal parse error occurred.
compiled: Option<CompiledSchema>The compiled IR, or None if errors prevented lowering or type-checking.
diagnostics: Vec<Diagnostic>All diagnostics (errors and warnings) from every pipeline stage.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompileResult
impl RefUnwindSafe for CompileResult
impl Send for CompileResult
impl Sync for CompileResult
impl Unpin for CompileResult
impl UnsafeUnpin for CompileResult
impl UnwindSafe for CompileResult
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