pub fn parse_mode(s: &str) -> Result<EnforcementMode, String>
Parse a stable enforcement mode string.