pub fn check_valid_string<T: AsRef<str>>(s: T, param: &str) -> Result<()>
Expand description
Checks the string s
has semantic meaning and contains only ASCII characters.
§Errors
Returns an error if:
s
is an empty string.s
consists solely of whitespace characters.s
contains one or more non-ASCII characters.