EUDCCValidator

public struct EUDCCValidator

An EUDCC Validator

  • Creates a new instance of EUDCCValidator

    Declaration

    Swift

    public init()

ValidationResult

Failure

  • An EUDCCValidator Failure

    See more

    Declaration

    Swift

    struct Failure : LocalizedError

Validate

  • Validate an EUDCC using a ValidationRule

    Declaration

    Swift

    func validate(
        eudcc: EUDCC,
        rule: EUDCC.ValidationRule = .default
    ) -> ValidationResult

    Parameters

    eudcc

    The EUDCC that should be validated

    rule

    The ValidationRule that should be used to validate the EUDCC. Default value .default

    Return Value

    The ValidationResult