pub struct PlannedTable {
pub name: String,
pub rows: u64,
pub schema: PortableTable,
pub seed: ResolvedTableSeed,
pub columns: Vec<PlannedColumn>,
pub relationships: Vec<CompiledRelationship>,
pub planners: Vec<Box<dyn CompiledPlanner>>,
pub eval_order: Vec<usize>,
}Expand description
A single selected table with its resolved row count and generation surface.
Cannot derive Debug/Clone: planners holds trait objects. See the
module docs for the manual Debug.
Fields§
§name: StringTable name.
rows: u64Exact, resolved row count.
schema: PortableTableThe table’s portable schema.
seed: ResolvedTableSeedThe table’s resolved seed.
columns: Vec<PlannedColumn>Every schema column, paired with the owner that produces its values.
relationships: Vec<CompiledRelationship>Compiled relationships to parent tables, including fan-out assignment.
planners: Vec<Box<dyn CompiledPlanner>>Compiled table-level planners, in declaration order. A
ColumnOwner::Planner’s planner_index indexes into this vector.
Declared planners are compiled here so ownership can reference and the
runtime can execute them without resolving the registry again.
eval_order: Vec<usize>The order in which the engine evaluates generator-owned columns within a
row: a topological sort of the column read graph (a generator that reads
a sibling is evaluated after that sibling), tie-broken by schema position.
A model with no cross-column reads keeps its exact declared order. Indexes
into Self::columns; always a total permutation of its length.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PlannedTable
impl !Sync for PlannedTable
impl !UnwindSafe for PlannedTable
impl Freeze for PlannedTable
impl Send for PlannedTable
impl Unpin for PlannedTable
impl UnsafeUnpin for PlannedTable
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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