Result
public enum Result
The result of a validation action.
-
Represents a valid validation.
Declaration
Swift
case valid
-
Represents a failed validation.
It has an associated
Result.Summary
to describe the reason of the failure.Declaration
Swift
case invalid(Result.Summary)
-
Declaration
Swift
public static func == (lhs: Result, rhs: Result) -> Bool
-
true
if the validation result is valid,false
otherwise.Declaration
Swift
public var isValid: Bool { get }
-
false
if the validation result is.invalid
or.unevaluated
,true
otherwise.Declaration
Swift
public var isInvalid: Bool { get }