Struct bulwark_config::Config
source · pub struct Config {
pub service: Service,
pub runtime: Runtime,
pub metrics: Metrics,
pub thresholds: Thresholds,
pub plugins: Vec<Plugin>,
pub presets: Vec<Preset>,
pub resources: Vec<Resource>,
}
Expand description
The root of a Bulwark configuration.
Wraps all child configuration structures and provides the internal representation of Bulwark’s configuration.
Fields§
§service: Service
Configuration for the services being launched.
runtime: Runtime
Configuration for the services being launched.
metrics: Metrics
Configuration for metrics collection.
thresholds: Thresholds
Configuration for the decision thresholds.
plugins: Vec<Plugin>
A list of configurations for individual plugins.
presets: Vec<Preset>
A list of plugin groups that allows a plugin set to be loaded with a single reference.
resources: Vec<Resource>
A list of routes that maps from resource paths to plugins or presets.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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