pub fn parse_rate(s: &str) -> Result<(u32, Duration), String>
"30/minute", "5/second", "1000/hour".
"30/minute"
"5/second"
"1000/hour"