EUDCCValidator
public struct EUDCCValidator
An EUDCC Validator
-
Creates a new instance of
EUDCCValidator
Declaration
Swift
public init()
-
The ValidationResult
Declaration
Swift
typealias ValidationResult = Result<Void, Failure>
-
An EUDCCValidator Failure
See moreDeclaration
Swift
struct Failure : LocalizedError
-
Validate an
EUDCC
using aValidationRule
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