Skip to main content

validate_nonempty

Function validate_nonempty 

Source
pub fn validate_nonempty(s: &str, field: &str) -> Result<()>
Expand description

A required free-form string that must not be empty (field names it for the error message).