Crate settings_schema

Source

Structs§

DictionaryDefault
Type used to specify the default value for type Vec<(String, X)>.
It allows setting the default for the dictionary (all entries) and the default key and value for new entries.
OptionalDefault
Type used to specify the default value for type Option.
It allows specifying the set state and its content when it is set.
Percentage
SchemaEntry
SwitchDefault
Type used to specify the default value for type Switch.
It allows setting the enabled state and its content when set to enabled.
VectorDefault
Type used to specify the default value for type Vec.
It allows setting the default for the vector (all elements) and the default value for new elements.

Enums§

ChoiceControlType
GUI type associated to the choice node.
NumberType
NumericGuiType
GUI type associated to a numeric node.
SchemaNode
Schema base type returned by <YourStructOrEnum>::schema(), generated by the macro #[derive(SettingsSchema)]. It can be used as is (for Rust based GUIs) or it can be serialized to JSON for creating GUIs in other languages.
Switch
The Switch is used to represent something that makes sense to specify its state only when it’s enabled. This should be used differently than Option(al), that represent a value that can be omitted.

Traits§

Deserialize
A data structure that can be deserialized from any data format supported by Serde.
Serialize
A data structure that can be serialized into any data format supported by Serde.

Functions§

to_json_value
Convert a T into serde_json::Value which is an enum that can represent any valid JSON data.

Derive Macros§

Deserialize
Serialize
SettingsSchema