settings-schema-rs

Derive macro for generating automatically a schema from Rust structures and enums. The schema can be serialized to JSON and/or used to generate a GUI.

Example

Node types

Attributes like gui can be applied to fields with compound types like Vec<Switch<u64>>.

Custom types with generic type arguments are not supported.

New *Default structures are automatically created to store default values. This is done to allow specifying the default data for all variants in a given enum.