Skip to main content

parse_priority_label

Function parse_priority_label 

Source
pub fn parse_priority_label(s: &str) -> Option<FilePriority>
Expand description

Parse a priority slug ("skip" | "low" | "normal" | "high") into a FilePriority. Returns None for any other input — callers can map that to a 422 (Web UI) or ignore it (GUI passes the int directly).