Skip to main content

require_text

Function require_text 

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

Requires a non-empty, trimmed text of at most max characters.