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.

  • The summary of a validation result.

    See more

    Declaration

    Swift

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

    Declaration

    Swift

    var summary: Summary { get }