pub fn dedup_levels(levels: Vec<Level>) -> Vec<Level>
Collect all levels appearing in a Vec<Level>, deduplicating by structural equality.
Vec<Level>