Skip to main content

validate_template_name

Function validate_template_name 

Source
pub fn validate_template_name(name: &str) -> Result<(), SnapshotError>
Expand description

Validate a template name.

Names become file names, snapshot vm_id components, and reference prefixes, so they share the sandbox-id charset; : is additionally impossible, keeping the name[:version] grammar unambiguous.