Skip to main content

Module payload

Module payload 

Source

Traits§

DeserializePayload
Deserializes a struct’s fields from sequential elements of a JSON array.
SerializePayload
Serializes a struct’s fields as sequential elements of a JSON array.

Functions§

ack_from_json
Deserializes a wire-format string into a typed AckType + DeserializePayload value.
ack_to_json
Serializes an AckType + SerializePayload value into its wire-format string representation.
event_from_json
Deserializes a wire-format string into a typed EventType + DeserializePayload value.
event_to_json
Serializes an EventType + SerializePayload value into its wire-format string representation.
from_json
Deserializes a JSON string slice into T.
to_json
Serializes payload to JSON, returning the encoded string.