brook_serializer v2.2.0 Brook.Deserializer.Protocol protocol
The protocol for standard de-serialization of Elixir structs passed through the Brook event stream for decoding from the in-transit format.
Brook drivers are expected to implement a default de-serializer for converting from a given encoding to an Elixir struct, leaving the client the option to implement a custom de-serializer for specific struct types.
Link to this section Summary
Functions
Convert the given encoded term to an instance of the supplied struct type.
Link to this section Types
Link to this type
reason()
reason()
reason() :: term()
reason() :: term()
Link to this type
t()
t()
t() :: term()
t() :: term()
Link to this section Functions
Link to this function
deserialize(struct, data)
Convert the given encoded term to an instance of the supplied struct type.