Skip to main content

PlannedTable

Struct PlannedTable 

Source
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: String

Table name.

§rows: u64

Exact, resolved row count.

§schema: PortableTable

The table’s portable schema.

§seed: ResolvedTableSeed

The 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§

Source§

impl Debug for PlannedTable

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Fake for T

Source§

fn fake<U>(&self) -> U
where Self: FakeBase<U>,

Source§

fn fake_with_rng<U, R>(&self, rng: &mut R) -> U
where R: RngExt + ?Sized, Self: FakeBase<U>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V