pub struct FieldStruct {
pub fields: Vec<Field>,
pub columns: IndexMap<ColumnId, usize>,
pub field_mask: PathFieldSet,
pub sub_projection: Projection,
}Expand description
Maps an embedded struct field to its flattened column representation.
Embedded fields are stored by flattening their primitive fields into columns
with names like {field}_{embedded_field}. This structure tracks the mapping
for each field in the embedded struct.
Fields§
§fields: Vec<Field>Per-field mappings for the embedded struct’s fields.
Indexed by field index within the embedded model.
columns: IndexMap<ColumnId, usize>Flattened mapping from columns to lowering expression indices.
This map contains all columns impacted by this embedded field, paired
with their corresponding lowering expression index in Model::model_to_table.
field_mask: PathFieldSetUpdate coverage mask for this embedded field.
The union of the field_mask bits of every primitive nested within this
embedded struct (recursively).
sub_projection: ProjectionThe projection from the root model field down to this embedded field within the type hierarchy. Identity for root-level embedded fields.
Trait Implementations§
Source§impl Clone for FieldStruct
impl Clone for FieldStruct
Source§fn clone(&self) -> FieldStruct
fn clone(&self) -> FieldStruct
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more