Structs§
- An array of
Valueitems - merde’s default opinions for deserialization: allow unknown fields, don’t fill in default values and keep key names as-is.
- Allows filling in a field of a struct while deserializing.
- A map, dictionary, object, whatever — with string keys.
Enums§
- A copy-on-write bytes type that uses
CompactBytesfor the “owned” variant. - A copy-on-write string type that uses
CompactStringfor the “owned” variant. - A grab-bag of errors that can occur when deserializing. This isn’t super clean, not my proudest moment.
- Think
serde_json::Value, but with a small string optimization, copy-on-write strings, etc. Might include other value types later. - A content-less variant of the
Valueenum, used for reporting errors, seeMerdeError::MismatchedType.
Traits§
- Opinions you have about deserialization: should unknown fields be allowed, etc.
- Allow turning a value into an “owned” variant, which can then be returned, moved, etc.
- Allow instantiating a type with a lifetime parameter, which in turn lets us require
Deserialize<'s>forCowStr<'s>for example, even whenCowStr<'s>is erased behind aT.
Functions§
- Transforms a future into a future that will return
Poll::Pendingif there is not enough stack space to execute the future.