Skip to main content

apply_limit_params

Function apply_limit_params 

Source
pub fn apply_limit_params(
    current: &Limits,
    p: &LimitParams,
) -> Result<Limits, String>
Expand description

Apply submitted fields to current: empty or 0 clears a limit, anything that is not a non-negative number is an error (nothing changes).