Skip to main content

validate_hostname_id

Function validate_hostname_id 

Source
pub fn validate_hostname_id(id: &str) -> Result<(), OperationOutcomeError>
Expand description

Validates a tenant or project id: at least HOSTNAME_ID_MIN_LEN characters, matching HOSTNAME_ID_PATTERN.

ยงErrors

Returns an [OperationOutcomeError] naming the rule id breaks.