Crate serde_mtproto [] [src]

Serde MTProto

MTProto is a mobile-first protocol for access to a server API. This crate provides means to serialize Rust types to its binary representation and to deserialize from said representation.

Reexports

pub use boxed::Boxed;
pub use error::Error;
pub use error::ErrorKind;
pub use error::Result;
pub use error::ResultExt;
pub use helpers::ByteBuf;
pub use helpers::Bytes;
pub use identifiable::Identifiable;
pub use sized::MtProtoSized;
pub use ser::Serializer;
pub use ser::to_bytes;
pub use ser::to_writer;
pub use de::Deserializer;
pub use de::from_bytes;
pub use de::from_reader;

Modules

boxed

Boxed struct which represents a boxed MTProto data type.

de

Deserialize MTProto binary representation to a Rust data structure.

error

When serializing or deserializing MTProto goes wrong.

helpers

Various helper types to assist in expressing certain data layouts.

identifiable

Identifiable trait for any Rust data structure that can have an id.

ser

Serialize a Rust data structure into its MTProto binary representation.

sized

MtProtoSized trait for any Rust data structure a predictable size of its MTProto binary representation can be computed.