Function load_thresholds
Source pub fn load_thresholds(
path: impl AsRef<Path>,
) -> Result<ThresholdConfig, DiffError>
Expand description
Load thresholds from a TOML file
§Arguments
path - Path to the TOML configuration file
§Returns
Parsed ThresholdConfig
§Errors
DiffError::IoError - If file cannot be read
DiffError::ThresholdParseFailed - If TOML is invalid
§Example
ⓘlet thresholds = load_thresholds("thresholds.toml")?;