serde-name
This crate provides fast and reliable ways to extract and to override the Serde name of a Rust container.
Extracting Serde names
Name extraction relies on the Deserialize trait of Serde:
assert_eq!;
assert_eq!;
assert_eq!;
Overriding Serde names
SerializeNameAdapter and DeserializeNameAdapter may be used to override the name
of a container in the cases where #[serde(rename = "..")] is not flexible enough.
// Generates Foo::(de)serialize instead of implementing Serde traits.
// Testing the Deserialize implementation
assert!;
// Testing the Serialize implementation
use *;
let mut tracer = new;
let mut samples = new;
let = tracer.trace_value.unwrap;
ident.normalize.unwrap;
assert!;
Contributing
See the CONTRIBUTING file for how to help out.
License
This project is available under the terms of either the Apache 2.0 license or the MIT license.