Skip to main content

validate_project_id

Function validate_project_id 

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

Validates a project id, and that {tenant}--{id} is at most 55 characters: a DNS label, less the spare room.

ยงErrors

Returns an [OperationOutcomeError] if id breaks validate_hostname_id or is too long for tenant.