pub fn get_indexed_field(
    data_type: &DataType,
    key: &ScalarValue
) -> Result<Field>
Expand description

Returns the field access indexed by key from a DataType::List or DataType::Struct

Error

Errors if

  • the data_type is not a Struct or,
  • there is no field key is not of the required index type