Skip to main content

limit_text

Function limit_text 

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

Trims a text and checks it is at most max characters.