Module ser

Module ser 

Source
Expand description

JSON compact serde serializer for ser-write

Structs§

ArrayByteEncoder
Implements ByteEncoder::serialize_bytes serializing to an array of numbers
Base64ByteEncoder
Implements ByteEncoder::serialize_bytes serializing to a Base-64 string
HexStrByteEncoder
Implements ByteEncoder::serialize_bytes serializing to a HEX string
PassThroughByteEncoder
Implements ByteEncoder::serialize_bytes passing bytes through
SeqMapSerializer
Serializer
Serde JSON serializer.
StringCollector
Strings written to this object using fmt::Write trait are written to the underlying writer with characters escaped using JSON syntax for strings.

Enums§

Error
Serialization error

Traits§

ByteEncoder
Determine how raw byte data types are serialized

Functions§

to_stringstd or alloc
to_string_base64_bytesstd or alloc
to_string_hex_bytesstd or alloc
to_string_pass_bytesstd or alloc
to_writer
Serialize value as JSON to a SerWrite implementation.
to_writer_base64_bytes
Serialize value as JSON to a SerWrite implementation.
to_writer_hex_bytes
Serialize value as JSON to a SerWrite implementation.
to_writer_pass_bytes
Serialize value as JSON to a SerWrite implementation.
to_writer_with_encoder
Serialize value as JSON to a SerWrite implementation using a provided ByteEncoder.

Type Aliases§

Result
Serialization result
SerializerByteArray
JSON serializer serializing bytes to an array of numbers
SerializerByteBase64
JSON serializer serializing bytes to a Base-64 string
SerializerByteHexStr
JSON serializer serializing bytes to a HEX-encoded string
SerializerBytePass
JSON serializer passing bytes through