Skip to main content

create_serializer

Function create_serializer 

Source
pub fn create_serializer(
    format: Format,
) -> Result<Box<dyn RecordSerializer>, SerdeError>
Expand description

Creates a serializer for the given format.

ยงErrors

Returns SerdeError::UnsupportedFormat if the format is not supported.