polars_parquet_format::thrift::protocol

Function verify_required_field_exists

Source
pub fn verify_required_field_exists<T>(
    field_name: &str,
    field: &Option<T>,
) -> Result<()>
Expand description

Check if a required Thrift struct field exists.

Return () if it does, Err otherwise.