This crate is a workaround for https://github.com/SergioBenitez/Rocket/issues/1937.
It is derived from the included serde_json implementation in rocket.
```rust
enum Body { #[serde(rename = "variantone")] VariantOne(VariantOne), #[serde(rename = "varianttwo")] VariantTwo(VariantTwo), }
struct VariantOne { content_one: String }
struct VariantTwo { content_two: String }
fn body(data: UrlEncoded
) -> String { /.../ } ```Works but not unit tested, nor have local testing affordances for users been added yet.
Supports rust stable and nightly, matching Rocket.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
PR's on Github as normal please. Cargo test and rustfmt code before submitting.