Skip to main content

emit_struct_list_field_expr

Function emit_struct_list_field_expr 

Source
fn emit_struct_list_field_expr(
    reader_var: &str,
    slot: u32,
    sd: &StructDef,
    schema: &ParsedSchema,
) -> String
Expand description

Generate an inline expression that reads a List(Struct) and maps elements to objects.

For non-union structs: maps to { field1, field2, ... }. For union structs: maps to { variant, data, ...nonUnionFields } via discriminant switch.