[][src]Crate rudano

Rudano, Rust Data Notation, is a data serialization format designed to be as similar as possible to Rust's own syntax.

Usage

Add this to your Cargo.toml (verifying the version number):

[dependencies]
rudano = "0.1"

Then you can use to_string_pretty or to_string_compact for serialization and from_str for deserialization. There are examples in the function docs.

Modules

de

Utilities for deserializing data structures from Rudano.

error

Error structures for Rudano.

ser

Utilities for serializing data structures into Rudano.

Structs

DeserializationError

Information on data deserialization error.

Deserializer

Rudano's deserializer. Its recommended that you use from_str instead.

Serializer

Rudano's serializer. Its recommended that you use to_string_compact or to_string_pretty instead.

Enums

SerializationError

All possible errors that may occur when Serializing Rudano.

Functions

from_str

Deserializes the given str as a value of type T.

serialize_array

Serializes array as sequence instead of serde's derive default (tuple).

to_string_compact

Serializes the given value as a String of compact Rudano.

to_string_pretty

Serializes the given value as a String of pretty-printed Rudano.

Type Definitions

DeserializationResult

Result of deserialization operation.

SerializationResult

Result of serialization operation.