Expand description
Configuration gear for typed gear configuration access.
This gear provides two distinct mechanisms for loading gear configuration:
-
Lenient loading (default): Falls back to
T::default()when configuration is missing.- Used by
gear_config_or_default - Allows gears to exist without configuration sections in the main config file
- Used by
-
Strict loading: Requires configuration to be present and valid.
- Used by
gear_config_required - Returns errors when configuration is missing or invalid
- Used by
Enums§
- Config
Error - Configuration error for typed config operations
Traits§
- Config
Provider - Provider of gear-specific configuration (raw JSON sections only).
Functions§
- gear_
config_ or_ default - Lenient configuration loader that falls back to defaults.
- gear_
config_ required - Strict configuration loader that requires configuration to be present.