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