Module serde_mtproto::ser [] [src]

Serialize a Rust data structure into its MTProto binary representation.

Structs

SerializeFixedLengthMap

Helper structure for serializing maps.

SerializeFixedLengthSeq

Helper structure for serializing fixed-length sequences.

Serializer

A structure for serializing Rust values into MTProto binary representation.

Functions

to_bytes

Serialize the given data structure as a byte vector of binary MTProto.

to_writer

Serialize the given data structure as binary MTProto into the IO stream.