Skip to main content

deserialize_routine_categories

Function deserialize_routine_categories 

Source
fn deserialize_routine_categories<'de, D>(
    deserializer: D,
) -> Result<Vec<RoutineCategory>, D::Error>
where D: Deserializer<'de>,
Expand description

Deserialise a *_routine_categories filter list permissively: unknown entries are dropped (each with a logged warning) instead of failing the whole profile load (#212). A wholly malformed value (not an array of strings) degrades to an empty list rather than failing the load — matching the difficulty handler’s tolerance. An empty result still means “all categories”.