validate_name_id_path

Function validate_name_id_path 

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

The arg can be any of:

  • name
  • Local ID (32byte hex encoded string)
  • @- (means STDIN)
  • @path