ValidationResult
public enum ValidationResult
A value that represents a successfull or a failed evalutation. In case of failure, it contains a ValidationResult.Summary
that summarises the reason behind it.
-
Validation was succesfull.
Declaration
Swift
case success
-
Validation failed. Contains
ValidationResult.Summary
that details the cause for failure.Declaration
Swift
case failure(Summary)
-
true
if the validation result is valid,false
otherwise.Declaration
Swift
var isSuccessful: Bool { get }
-
false
if the validation result is.failure
or.unevaluated
,true
otherwise.Declaration
Swift
var isFailed: Bool { get }