Skip to main content

Module contained

Module contained 

Source
Expand description

Contained relation registration — a closure that builds the embedded record’s table, mirroring how HasOne / HasMany carry a build_target for joined tables.

The contained record’s fields are typed in the parent’s own type system (a line’s product is the driver’s Thing, its quantity an i64), so the closure has the same shape as with_many’s — Fn(T) -> Table<T, E2>. It’s evaluated lazily at traversal time; the driver runs its normal column-harvesting routine on the result to derive the sub-Vista’s schema. The returned table carries a real data source it is never queried through — only its column/relation schema is read; row data comes from the parent’s embedded column.

Structs§

ContainedRelation
A contained (embedded-in-row) relation declared on a Table.