DSAdHocValidationRule

public struct DSAdHocValidationRule : DSValidationRule

A validation rule that allows for an error message to be expressly set. When the message is non-empty, the validation fails. Useful for showing backend errors.

  • Initializes the validation rule.

    Declaration

    Swift

    public init(message: String? = nil)

    Parameters

    message

    Error message to display if validator fails