Summary

public struct Summary<E> : Error where E : Error
extension Summary: Equatable

The summary of a validation result.

  • A non-empty[Error] if the validation result is .failure, empty otherwise.

    Declaration

    Swift

    public private(set) var errors: [E] { get }
  • The number of failing constraints for a .failure result, 0 otherwise.

    Declaration

    Swift

    public var failingConstraints: Int { get }
  • true if the validation result is .failure, false otherwise.

    Declaration

    Swift

    public var hasFailingContraints: Bool { get }

Equatable conformance

  • Declaration

    Swift

    public static func == (lhs: Summary, rhs: Summary) -> Bool