Crate deser

Source
Expand description

deser: an experimental serialization and deserialization library for Rust

Deser is an experimental serialization system for Rust. It wants to explore the possibilities of serialization and deserialization of structural formats such as JSON or msgpack. It intentionally does not desire to support non self describing formats such as bincode.

There is not much in terms of actual serialization and deserialization yet as this library at this point is an exploration in API design for the abstraction layer itself.

This is not a production ready yet.

use deser::{Serialize, Deserialize};

#[derive(Debug, Serialize, Deserialize)]
#[deser(rename_all = "camelCase")]
pub struct Account {
    id: usize,
    account_holder: String,
    is_deactivated: bool,
}

For more information have a look at the GitHub repository: mitsuhiko/deser.

§Features

Re-exports§

pub use self::de::Deserialize;
pub use self::ser::Serialize;
pub use self::derive::Deserialize;
pub use self::derive::Serialize;

Modules§

de
Generic data structure deserialization framework.
derive
Support for automatic serializer and deserializer deriving.
ser
Generic data structure serialization framework.

Macros§

make_slot_wrapper
Creates a newtype wrapper around Option<T>.

Structs§

Error
An error for deser.

Enums§

Atom
An atom is a primitive value for serialization and deserialization.
ErrorKind
Describes the kind of error.
Event
An event represents an atomic serialization and deserialization event.

Traits§

Descriptor
A descriptor provides auxiliary type information.