pub fn validated(name: impl Into<String>) -> Result<String, Error>
Return name if it is valid or convert it into an Error.
name
Error