Skip to main content

validate_script_namespace_and_name

Function validate_script_namespace_and_name 

Source
pub fn validate_script_namespace_and_name(
    namespace: &str,
    name: &str,
) -> Result<(), InteropError>
Expand description

Checks that a namespace and name given by a script to register something are valid.

Namespaces defined by scripts must start with script. followed by at least one segment, segments are separated by dots and made up of letters, digits and underscores. Names cannot contain dots.