pub struct Column {
pub name: Ident,
pub source: Ident,
pub ty: Type,
pub project: Projection,
}Expand description
One column of one emitted type.
A column is SCOPED: the same record field reaches the key type and the lineage type as two separate columns, which may carry different names. That is not a quirk — the key’s columns become the record table’s, the lineage’s become the degraded table’s, and two tables may name their columns differently.
Fields§
§name: IdentThe column’s name IN THIS TYPE: the declaration’s field name, or the rename its scope gave it. Also the accessor’s name and the suffix of both mutators’.
source: IdentThe RECORD field this column projects.
Equal to Column::name unless a scoped rename moved it. The conversions need both: a
From<Record> reads record.source and writes Self { name }.
ty: TypeThe field’s declared type, verbatim.
project: ProjectionHow the column is handed out — the declaration’s marker, or the default borrow.