Skip to main content

JsonEncode

Derive Macro JsonEncode 

Source
#[derive(JsonEncode)]
Expand description

Derives reliakit_json::JsonEncode: a struct with named fields becomes a JSON object (in declaration order), a tuple struct becomes a JSON array, and a unit struct becomes null.

Enums are not supported yet. See the crate documentation.