Expand description
Decoding Values into typed protocol values, following valita’s rules:
optional fields may be absent but not null (unless declared nullable),
and unknown keys are ignored (passthrough mode).
Structs§
- Builder
- Builds a JSON object, leaving out
Nonefields. - Decode
Error - Why a value didn’t decode. The path points at the offending value, like valita’s error paths.
- Reader
- Reads the fields of an object.
Traits§
- Json
Codable - A value with a JSON form following the
zero-protocolschema.
Functions§
- array
v.array(element).- array_
value - bool
- compound_
key - A non-empty array of strings (
CompoundKey,PrimaryKey). - number
- object
- primary_
key_ value - A string, number, or boolean (
primaryKeyValueSchema). - record
v.record(element), keeping the object’s order.- string
- strings
- strings_
json - Strings as a JSON array.
- tagged
- A tuple message
[tag, body].