pub struct CpexConfig {
pub global: GlobalConfig,
pub plugin_dirs: Vec<String>,
pub plugins: Vec<PluginConfig>,
pub routes: Vec<RouteEntry>,
pub plugin_settings: PluginSettings,
}Expand description
Top-level CPEX configuration.
Parsed from a single YAML file. Plugin scoping mode is controlled
by plugin_settings.routing_enabled — if absent or false, plugins
use their own conditions: field (backward compatible). If true,
the routes: and global: sections take over.
Fields§
§global: GlobalConfigGlobal configuration — policies, defaults.
Only used when plugin_settings.routing_enabled is true.
plugin_dirs: Vec<String>Directories to scan for plugin modules.
plugins: Vec<PluginConfig>Plugin declarations.
routes: Vec<RouteEntry>Per-entity routing rules.
Only used when plugin_settings.routing_enabled is true.
plugin_settings: PluginSettingsGlobal plugin settings (timeout, error behavior, routing mode).
Implementations§
Source§impl CpexConfig
impl CpexConfig
Sourcepub fn routing_enabled(&self) -> bool
pub fn routing_enabled(&self) -> bool
Whether route-based plugin selection is enabled.
Trait Implementations§
Source§impl Clone for CpexConfig
impl Clone for CpexConfig
Source§fn clone(&self) -> CpexConfig
fn clone(&self) -> CpexConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CpexConfig
impl Debug for CpexConfig
Source§impl Default for CpexConfig
impl Default for CpexConfig
Source§fn default() -> CpexConfig
fn default() -> CpexConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CpexConfig
impl<'de> Deserialize<'de> for CpexConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CpexConfig
impl RefUnwindSafe for CpexConfig
impl Send for CpexConfig
impl Sync for CpexConfig
impl Unpin for CpexConfig
impl UnsafeUnpin for CpexConfig
impl UnwindSafe for CpexConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more