Skip to main content

ModuleConfig

Trait ModuleConfig 

Source
pub trait ModuleConfig:
    Any
    + Send
    + Sync {
    // Required method
    fn as_any(&self) -> &dyn Any;

    // Provided methods
    fn format(&self) -> &str { ... }
    fn style(&self) -> &str { ... }
}
Expand description

Trait for module-specific configuration

Each module can have its own configuration section in the TOML file. This trait provides a common interface for accessing module configurations.

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Allow downcasting to concrete config types

Provided Methods§

Source

fn format(&self) -> &str

Get the format string for this module

Source

fn style(&self) -> &str

Get the style string for this module

Implementors§