Function parse_autonomy_level
Source fn parse_autonomy_level(s: &str) -> Result<AutonomyLevel, ConfigError>
Expand description
Parse an autonomy level string into an AutonomyLevel.
Accepts case-insensitive names: operator, collaborator, consultant,
approver, observer.
§Examples
ⓘlet level = parse_autonomy_level("collaborator").unwrap();
assert_eq!(level, AutonomyLevel::Collaborator);