Skip to main content

Module format

Module format 

Source
Expand description

Output formats.

A Format turns a crate::Record into bytes on a writer. Three formats ship in the crate and are gated by feature flags. Custom formats can be supplied as a closure or by implementing the trait.

All formatters write directly to the supplied writer without intermediate allocation.

Structs§

HumanFormathuman
Human-readable formatter.
JsonFormatjson
JSON formatter.
LogfmtFormatlogfmt
logfmt formatter. See module docs for the wire format.

Traits§

Format
A record-to-bytes serializer.