Skip to main content

Crate midiserde

Crate midiserde 

Source
Expand description

Midiserde — when mini isn’t enough and serde is too much.

A companion to miniserde that adds the attributes and patterns people keep asking for.

§Features

  • macros (default: on) — Enables derive macros Deserialize and Serialize, re-exported here for convenience. Use midiserde = { version = "0.1" }.

Modules§

json
JSON data format.
with

Traits§

Deserialize
Trait for data structures that can be deserialized from a JSON string.
FlattenDeserialize
Types whose fields can be flattened into a parent during deserialization.
FlattenMap
A de::Map that produces a typed T directly after being driven.
Serialize
Trait for data structures that can be serialized to a JSON string.
SerializeMapBuilder
Produces a ser::Map over this type’s fields for flatten serialization.

Functions§

from_value
Deserialize a type from a miniserde::json::Value.
replay_value_to_visitor
Replay a captured Value to a Visitor.
to_value
Serialize a type into a miniserde::json::Value.

Derive Macros§

Deserialize
Serialize