Skip to main content

export_streams

Function export_streams 

Source
pub fn export_streams<W: Write>(
    storage: &dyn Storage,
    options: &ExportOptions,
    writer: W,
) -> Result<ExportStats, TransferError>
Expand description

Export streams from storage to a JSON writer.

Streams are listed via Storage::list_streams, optionally filtered by options.stream_names, then each stream’s messages are read in full and base64-encoded into the output document.

§Errors

Returns TransferError if a storage operation, JSON serialization, or I/O write fails.