pub fn validated(name: impl Into<String>) -> Result<String, Error>
Expand description

Return name if it is valid or convert it into an Error.