serde-value-flatten
Based on serde-value
, serde-value-flatten
provides a function to flatten any struct which
implement serde::Serialize
.
Quickstart
You can start using it by first adding it to your Cargo.toml
:
[]
= "1.0"
= "1.0"
= "0.1"
Then, create a structure which implement the serde::Serialize
trait and use it with any
serde lib.
Example
Output:
Feature ovh-ldp
The feature ovh-ldp
allow to suffix fields names to suits to the LDP naming conventions.
In your Cargo.toml
, set:
[]
= "1.0"
= "1.0"
= { = "0.1", = ["ovh-ldp"] }
Re-run the previous example, and now the output will be :
License: BSD-3-Clause