pub struct ReflectionResult {
pub success: bool,
pub retries_used: u32,
pub stages: Vec<StageResult>,
pub diagnose: DiagnoseReport,
pub all_diagnostics: Vec<Diagnostic>,
}Expand description
The overall result of the reflection loop.
Fields§
§success: boolWhether the generated code passed all stages.
retries_used: u32Number of retries used.
stages: Vec<StageResult>Per-stage results from the final attempt.
diagnose: DiagnoseReportThe final diagnostic report (parse + check).
all_diagnostics: Vec<Diagnostic>All accumulated diagnostics across all attempts.
Implementations§
Source§impl ReflectionResult
impl ReflectionResult
Sourcepub fn final_diagnostics(&self) -> Vec<&Diagnostic>
pub fn final_diagnostics(&self) -> Vec<&Diagnostic>
Get all diagnostics from the final attempt.
Sourcepub fn has_failures(&self) -> bool
pub fn has_failures(&self) -> bool
Did any stage fail?
Trait Implementations§
Source§impl Clone for ReflectionResult
impl Clone for ReflectionResult
Auto Trait Implementations§
impl Freeze for ReflectionResult
impl RefUnwindSafe for ReflectionResult
impl Send for ReflectionResult
impl Sync for ReflectionResult
impl Unpin for ReflectionResult
impl UnsafeUnpin for ReflectionResult
impl UnwindSafe for ReflectionResult
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