Expand description
A quote!-based reimplementation of the borrowed emitter.
This is the zero-copy, lifetime-carrying flavor with &'a str, &'a [u8],
and RecordsPayloadBorrowed<'a>, plus a to_owned() bridge to the owned
types and a DecodeBorrow<'de> impl.
The approach is the same as super::owned_quote. This module builds the
structural scaffolding as tokens: the struct, Default, to_owned,
Encode, DecodeBorrow, nested structs, and populated. It reuses the
leaf codec expressions, the import and constant blocks, and the
common-struct files verbatim from super::borrowed, whose wire bytes are
already test-covered. The borrowed_quote_parity test asserts
token-stream equality with the string emitter for every schema.
Functionsยง
- emit
- Errors