A serializer and deserializer for values of type T
- Type parameters:
- R
Environment available to the deserializer
- T
Value type
- Companion:
- object
Value members
Concrete methods
Creates a new Serde that uses optional values. Null data will be mapped to None values.
Creates a new Serde that uses optional values. Null data will be mapped to None values.
Creates a new Serde that executes its serialization and deserialization functions on the blocking threadpool.
Creates a new Serde that executes its serialization and deserialization functions on the blocking threadpool.
- Definition Classes
Inherited methods
Returns a new serializer that handles optional values and serializes them as nulls.
Returns a new serializer that handles optional values and serializes them as nulls.
- Inherited from:
- Serializer
Returns a new deserializer that deserializes values as Option values, mapping null data to None values.
Returns a new deserializer that deserializes values as Option values, mapping null data to None values.
- Inherited from:
- Deserializer
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.
- Inherited from:
- Deserializer
Create a serializer for a type U based on the serializer for type T and a mapping function
Create a serializer for a type U based on the serializer for type T and a mapping function
- Inherited from:
- Serializer
Create a serializer for a type U based on the serializer for type T and an effectful mapping function
Create a serializer for a type U based on the serializer for type T and an effectful mapping function
- Inherited from:
- Serializer
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 a mapping function
- Inherited from:
- Deserializer
Create a deserializer for a type U based on the deserializer for type T and an effectful mapping function
Create a deserializer for a type U based on the deserializer for type T and an effectful mapping function
- Inherited from:
- Deserializer
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.
- Inherited from:
- Deserializer