Skip to main content

validate

Function validate 

Source
pub fn validate(input: &str) -> Result<(), ValidationError>
Expand description

Validates an Ecuadorian IBAN following ISO 13616.

§Arguments

  • input - A string containing the IBAN (starts with “EC”, 24 characters total).

§Errors

Returns ValidationError on validation failure:

§Examples

use ec_validator::iban;

// Valid IBAN format (must have correct check digits)
let result = iban::validate("EC8912345678901234567890");
// Result depends on check digit validity