Vapor Documentation Beta

Structure Validator​Results.​Range

public struct Range<T> where T: Comparable

ValidatorResult of a validator that validates whether the input is within a supplied range.

%3 ValidatorResults.Range ValidatorResults.Range ValidatorResult ValidatorResult ValidatorResults.Range->ValidatorResult

Member Of

ValidatorResults

Conforms To

ValidatorResult

Properties

result

let result: RangeResult<T>

The position of the data relative to the range.

is​Failure

var isFailure: Bool

success​Description

var successDescription: String?

failure​Description

var failureDescription: String?