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
  • The summary of a validation result.

    See more

    Declaration

    Swift

    public struct Summary
  • 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 }
  • Summary of the validation result.

    Declaration

    Swift

    public var summary: Summary { get }