Skip to main content

validate_record

Function validate_record 

Source
pub fn validate_record(
    fields: &[String],
    record: &[String],
) -> Result<(), String>
Expand description

Validates a CSV record against the given schema field names.

Returns Err(message) if the record has fewer fields than the schema requires, or if any schema field is present but empty. The caller maps the message onto its own FFI exception type.