pub(crate) fn parse_resolution(v: &str) -> Result<Resolution, String>