pub fn parse_duration(s: &str) -> Option<Duration>Expand description
Parse a duration literal ("10s", "500ms", "5m", "2h", "1d") to a
Duration. None for a malformed string (the lexer already guarantees the
shape for a ttl: field, so this is defence in depth).