Expand description
Dependency-free streaming interoperability between structured formats.
The EventSink contract is deliberately smaller than a type-driven
serialization framework. It represents the complete JSON data model and
allows formats to relay values without constructing an intermediate tree.
Structs§
- Cbor
Sink - Streaming RFC 8949 CBOR destination for JSON-compatible events.
- Json
Sink - JSON destination for
EventSinkstreams.
Traits§
- Event
Sink - Receives a validated stream of JSON-compatible structural events.
Functions§
- cbor_
into - Relay one complete CBOR value into an event sink.
- cbor_
into_ with_ max_ depth - Relay one complete CBOR value with an explicit maximum nesting depth.
- cbor_
to_ json - Stream one complete CBOR value into compact JSON bytes without an intermediate value tree.
- cbor_
to_ json_ pretty - Stream one complete CBOR value into pretty-printed JSON bytes.
- cbor_
to_ json_ with_ config - Stream one complete CBOR value into JSON bytes with an explicit encoding configuration.
- cbor_
to_ json_ writer - Stream one complete CBOR value into a JSON writer.
- json_
into - Relay one complete JSON value into an event sink.
- json_
into_ with_ config - Relay one complete JSON value using an explicit nesting configuration.
- json_
to_ cbor - Stream one complete JSON value into CBOR bytes without an intermediate value tree.
- json_
to_ cbor_ writer - Stream one complete JSON value into a CBOR writer.