Skip to main content

parse_password_rules

Function parse_password_rules 

Source
pub fn parse_password_rules(
    rules: &str,
) -> Result<PasswordGeneratorRequest, PasswordRulesError>
Expand description

Parses an HTML passwordrules attribute string into a PasswordGeneratorRequest.

Empty or whitespace-only input is accepted and resolves to the spec default (allowed: ascii-printable).