validate_name_id

Function validate_name_id 

Source
pub fn validate_name_id<F>(
    name_validator: F,
    s: &str,
) -> Result<String, &'static str>
where F: Fn(&str) -> Result<String, &'static str>,
Expand description

The arg can be any of:

  • name
  • Local ID (32byte hex encoded string)