pub struct Config {
pub terminal: Map<String, Value>,
pub board_order: Vec<String>,
pub auto_refresh: bool,
pub chat: ChatConfig,
pub mcp: McpSettings,
pub web: WebConfig,
pub github: GitHub,
pub repos: Vec<String>,
pub boards: BTreeMap<String, bool>,
pub features: BTreeMap<String, bool>,
pub board_settings: BTreeMap<String, Map<String, Value>>,
pub web_boards: Vec<WebBoard>,
}Fields§
§terminal: Map<String, Value>The terminal object as the file has it. The terminal panel reads
its own keys, such as fontFamily and fontSize.
board_order: Vec<String>§auto_refresh: bool§chat: ChatConfig§mcp: McpSettings§web: WebConfig§github: GitHub§repos: Vec<String>owner/name, unique without regard to case, in file order.
boards: BTreeMap<String, bool>Explicit board choices. Missing ids use the current product descriptor’s default; ids the product does not build stay unknown.
features: BTreeMap<String, bool>Saved choices for registered app and board features. Valid unknown feature ids remain here for forward compatibility.
board_settings: BTreeMap<String, Map<String, Value>>Native boards’ settings from their own files (board_file),
keyed by board id. Only load_with_boards reads them.
web_boards: Vec<WebBoard>Implementations§
Source§impl Config
impl Config
Sourcepub fn board_enabled(&self, id: &str) -> bool
pub fn board_enabled(&self, id: &str) -> bool
Whether the product may show and serve the board id. Every board of
the product is active unless the config file sets it to false.
Sourcepub fn board_enabled_or(&self, id: &str, default_enabled: bool) -> bool
pub fn board_enabled_or(&self, id: &str, default_enabled: bool) -> bool
Resolves a product’s default while preserving an explicit config choice.
Sourcepub fn feature_enabled(&self, spec: &FeatureSpec) -> bool
pub fn feature_enabled(&self, spec: &FeatureSpec) -> bool
Resolves one registered feature’s lifecycle and toggle policy.