pub fn parse_duration(value: &str) -> Result<Duration, String>
Parse a human-readable duration such as 500ms, 2h30m, or 1year.
500ms
2h30m
1year