Skip to main content

parse_risk_config

Function parse_risk_config 

Source
pub fn parse_risk_config(text: &str) -> Result<RiskLayer, RiskConfigError>
Expand description

Parse and validate a risk config from a YAML string.

Convenience over load_risk_file for in-memory inputs (tests and fuzzing): deserializes then runs the same validation build_risk_layer performs.