pub struct Config {
pub project: ProjectConfig,
pub defaults: DefaultsConfig,
pub output: OutputConfig,
pub program_labels: BTreeMap<String, String>,
pub scenario: BTreeMap<String, ScenarioConfig>,
pub anchor: AnchorConfig,
}Expand description
Top-level configuration.
Fields§
§project: ProjectConfigProject identity.
defaults: DefaultsConfigDefault policy + CI behaviour.
output: OutputConfigOutput destinations and default format.
program_labels: BTreeMap<String, String>Extra program-ID labels.
scenario: BTreeMap<String, ScenarioConfig>Per-scenario configuration, keyed by scenario name.
anchor: AnchorConfigOptional Anchor integration (requires the anchor feature to take effect).
Implementations§
Source§impl Config
impl Config
Sourcepub fn default_policy(&self) -> BudgetPolicy
pub fn default_policy(&self) -> BudgetPolicy
The default budget policy assembled from [defaults].
Sourcepub fn effective_policy(&self, scenario: &str) -> BudgetPolicy
pub fn effective_policy(&self, scenario: &str) -> BudgetPolicy
The effective budget policy for a scenario (defaults overlaid by the per-scenario settings).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin 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