OptionalerrorOptionalextractedWhat the country's parser extracted from a valid ID. null when the ID is
invalid or the country has no parser; absent when the country is unsupported.
OptionalreasonMachine-readable cause of the failure. Present only when isValid is false.
Best-effort and non-exhaustive: derivation may fall back to a generic code
rather than risk a wrong specific one, and future releases may add new values.
Validation result interface.
Iis the country's parse result type.validateNationalId()infers it from the country code (#123); it is ParsedInfo when the code is not known at compile time.