pub fn import_and_export(
state: &mut EiteState,
in_format: &Format,
out_format: &Format,
content_bytes: &[u8],
prefilter_settings: &PrefilterSettings,
) -> Result<(Vec<u8>, FormatLog)>Expand description
Convenience: import from one format and export to another in a single step.
Internally delegates to formats::convert_formats to allow any shared
optimizations (e.g. streaming pipelines in the future).
Arguments:
state: Mutable runtime state.in_format: Source format identifier.out_format: Target format identifier.content_bytes: Raw serialized input inin_format.
Returns serialized bytes in out_format.
Errors:
- Any error from
import_documentorexport_document.