pub fn get_data_type(type_string: &str) -> Result<DataSetType, UGError>
Expand description
Get the data type associated with a string scraped from UG
§Example:
use ug_scraper::types::get_data_type;
get_data_type("Chords");
// Returns:
// enum variant DataSetType::Chords
§Supported strings:
- Chords
- Tabs
- Bass Tabs
- Ukulele Chords
- Drum Tabs
- Official
- Pro
- Power
- Video
Returns UGError::UnknownTypeError
if type is unknown.