Serde that handles deserialization failures by returning a Task
Serde that handles deserialization failures by returning a Task
This is useful for explicitly handling deserialization failures.
Create a deserializer for a type U based on the deserializer for type T and a mapping function
Create a deserializer for a type U based on the deserializer for type T and an effectful mapping function
When this serializer fails, attempt to deserialize with the alternative
When this serializer fails, attempt to deserialize with the alternative
If both deserializers fail, the error will be the last deserializer's exception.
Deserializer from byte array to a value of some type T
Environment available to the deserializer
Value type