Skip to main content

normalize

Function normalize 

Source
pub fn normalize(value: &Value, what: &str) -> Result<String, String>
Expand description

A limit as stored: "" for auto, "0" for no limit, else the number (MB, or CPUs). An explicit value that is none of these is an error, where Limit::from_json is lenient with what it reads back.