pub struct GenerateReport {
pub rows_written: u64,
pub effective_seed: Option<u64>,
pub diagnostics: DiagnosticBag,
pub source_values: Vec<SourceValueUse>,
pub explain: Vec<ExplainColumn>,
}Expand description
A summary of a completed Generate::run.
Diagnostics collected while loading, merging, and compiling the model
survive here even on success: a --max-rows cap or a source-fingerprint
mismatch is a warning, not an error, and a caller still deserves to see
it.
Fields§
§rows_written: u64Rows written across every table (Generate mode), or the compiled
plan’s estimated total (DryRun); always 0 for Check/EmitModel.
effective_seed: Option<u64>The root seed the run actually used. Always Some — an unseeded run
draws a fresh random seed and records it here so the run is reproducible
after the fact, even though its emitted model records no seed.
diagnostics: DiagnosticBagEvery diagnostic collected while loading, merging, and compiling the
model. Non-error diagnostics only on success; see
GenerateError::Diagnostics
for the failure path.
source_values: Vec<SourceValueUse>Every place the resolved model’s rules replay literal values derived
from the source dump. Locations and rule kinds only, never values — the
GEN-SOURCE-VALUES advisory is built from this.
explain: Vec<ExplainColumn>The per-column inference explanation, populated only when the request
asked for it (--explain). Never carries observed values.
Trait Implementations§
Source§impl Clone for GenerateReport
impl Clone for GenerateReport
Source§fn clone(&self) -> GenerateReport
fn clone(&self) -> GenerateReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GenerateReport
impl Debug for GenerateReport
Source§impl Default for GenerateReport
impl Default for GenerateReport
Source§fn default() -> GenerateReport
fn default() -> GenerateReport
Auto Trait Implementations§
impl Freeze for GenerateReport
impl RefUnwindSafe for GenerateReport
impl Send for GenerateReport
impl Sync for GenerateReport
impl Unpin for GenerateReport
impl UnsafeUnpin for GenerateReport
impl UnwindSafe for GenerateReport
Blanket Implementations§
impl<T> Allocation for T
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
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>
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>
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