Skip to main content

validate_input_length

Function validate_input_length 

Source
fn validate_input_length(
    input: &str,
    field_name: &str,
    max_length: usize,
) -> Result<()>
Expand description

Validates that a string input does not exceed the maximum allowed length.

ยงErrors

Returns Error::InvalidInput if the input exceeds max_length.