Skip to main content

format_output

Function format_output 

Source
pub fn format_output(
    result: ProcessedResult,
    content_type: ContentType,
    parquet_options: Option<&ParquetOptions>,
) -> Result<Vec<u8>, SofError>
Expand description

Renders a ProcessedResult to bytes in the requested ContentType.

Dispatches to format_csv, format_json, format_ndjson, or format_parquet based on content_type. Callers outside this crate (REST handlers, pysof, sof-server) use this entry point so output shape is consistent across consumers.