Enumerationvapor 4.114.1Vapor
RangeResult
Type used by Range
and Count
validators to indicate where a value fell within a range.
enum RangeResult<T> where T : Comparable
Type used by Range
and Count
validators to indicate where a value fell within a range.
enum RangeResult<T> where T : Comparable
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
protocol Comparable : Equatable
A type that can be compared using the relational operators <
, <=
, >=
, and >
.
case between(min: T, max: T)
The value was between min
and max
.
case greaterThanOrEqualToMin(T)
The value was greater than or equal to min
.
case greaterThanMax(T)
The value was greater than max
.
case lessThanOrEqualToMax(T)
The value was less than or equal to max
.
case lessThanMin(T)
The value was less than min
.
protocol Equatable
A type that can be compared for value equality.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
protocol Sendable