Skip to main content

validate_name

Function validate_name 

Source
pub fn validate_name(s: &[u8]) -> Result<&str, ParseStorePathNameError>
Expand description

Checks a given &u8 to match the restrictions for StorePath::name, and returns the name as &str if successful.