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
derive
turns on basic derive support forSerialize
andDeserialize
. For more information seederive
.
Re-exports
pub use self::de::Deserialize;
pub use self::ser::Serialize;
pub use self::derive::Deserialize;
pub use self::derive::Serialize;
Modules
Generic data structure deserialization framework.
Support for automatic serializer and deserializer deriving.
Generic data structure serialization framework.
Macros
Creates a newtype wrapper around Option<T>
.
Structs
An error for deser.
Enums
An atom is a primitive value for serialization and deserialization.
Describes the kind of error.
An event represents an atomic serialization and deserialization event.
Traits
A descriptor provides auxiliary type information.