fn on_field<D: MaybeData>( data_type: &DataType, maybe: D, expected: &Schema, ) -> Result<D::Out, FieldEncodeError>
Handles both validate (without actual data) and encode. See MaybeData for more info.
validate
encode
MaybeData