Skip to main content

validate_string_len

Function validate_string_len 

Source
pub fn validate_string_len(
    field: &str,
    value: &str,
    max: usize,
) -> Result<(), String>
Expand description

Validate a string field does not exceed the given max length.