Skip to main content

check_opt_string_len

Function check_opt_string_len 

Source
pub fn check_opt_string_len(
    s: &Option<String>,
    max: usize,
    field: &'static str,
) -> Result<(), WireValidationError>
Expand description

Check that an Option<String> does not exceed the given byte length limit.