from_string_map

Function from_string_map 

Source
pub fn from_string_map<S: BuildHasher>(
    map: Option<&HashMap<String, String, S>>,
) -> Option<Limits>
Expand description

Creates limits from a string-based key-value map.

Parses numeric values from string map, ignoring invalid entries. Missing or unparseable values default to None (no limit).

§Arguments

  • map - Optional HashMap containing string representations of limits

§Returns

Optional Limits struct with parsed values, or None if input is None