Expand description
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§
- Deserialization
Error - Information on data deserialization error.
- Deserializer
- Rudano’s deserializer. Its recommended that you use
from_strinstead. - Serializer
- Rudano’s serializer. Its recommended that you use
to_string_compactorto_string_prettyinstead.
Enums§
- Serialization
Error - All possible errors that may occur when Serializing Rudano.
Functions§
- from_
str - Deserializes the given
stras a value of typeT. - serialize_
array - Serializes array as sequence instead of serde’s derive default (tuple).
- to_
string_ compact - Serializes the given
valueas a String of compact Rudano. - to_
string_ pretty - Serializes the given
valueas a String of pretty-printed Rudano.
Type Aliases§
- Deserialization
Result - Result of deserialization operation.
- Serialization
Result - Result of serialization operation.