pub fn is_valid(input: &str) -> bool
Returns true if input is a valid EDTF string (levels 0–2).
input