pub fn parse_scan_type(s: Option<&str>) -> Option<ScanType>
Parse scan type from string using FromStr.