pub struct ScenarioConfig {
pub tags: Vec<String>,
pub profile: Option<String>,
pub description: Option<String>,
pub ml_training: bool,
pub target_anomaly_ratio: Option<f64>,
pub metadata: HashMap<String, String>,
}Expand description
Scenario configuration for metadata, tagging, and ML training setup.
This section enables tracking the purpose and characteristics of a generation run.
Fields§
Tags for categorizing and filtering datasets. Examples: “fraud_detection”, “retail”, “month_end_stress”, “ml_training”
profile: Option<String>Data quality profile preset.
- “clean”: Minimal data quality issues (0.1% missing, 0.05% typos)
- “noisy”: Moderate issues (5% missing, 2% typos, 1% duplicates)
- “legacy”: Heavy issues simulating legacy system data (10% missing, 5% typos)
description: Option<String>Human-readable description of the scenario purpose.
ml_training: boolWhether this run is for ML training (enables balanced labeling).
target_anomaly_ratio: Option<f64>Target anomaly class balance for ML training. If set, anomalies will be injected to achieve this ratio.
metadata: HashMap<String, String>Custom metadata key-value pairs.
Trait Implementations§
Source§impl Clone for ScenarioConfig
impl Clone for ScenarioConfig
Source§fn clone(&self) -> ScenarioConfig
fn clone(&self) -> ScenarioConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ScenarioConfig
impl Debug for ScenarioConfig
Source§impl Default for ScenarioConfig
impl Default for ScenarioConfig
Source§fn default() -> ScenarioConfig
fn default() -> ScenarioConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScenarioConfig
impl<'de> Deserialize<'de> for ScenarioConfig
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 ScenarioConfig
impl RefUnwindSafe for ScenarioConfig
impl Send for ScenarioConfig
impl Sync for ScenarioConfig
impl Unpin for ScenarioConfig
impl UnwindSafe for ScenarioConfig
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