Expand description
Schema adapters that serialize a type by converting it to and from the value of an intermediate “wire” schema.
Structs§
- Default
OnEmpty Read - Deserializes using the wire schema
Tnormally, but yieldsT::Dst::default()when the reader is exhausted (hits EOF) instead of erroring. - Discard
- Reads a value with the
Innerschema purely to advance the reader, then throws it away and yieldsDefault::default()instead. - Discard
Seq - Discards a length-prefixed sequence: reads the length (encoded per
Len) and steps over every element with the element schemaT, advancing the reader exactly as decoding the sequence would, yet never allocates a backing buffer and always yields an emptyVec. - From
Into - Serialize a
Targetby going through an intermediate wire representation using the standard libraryFrom/Intoconversions.