Vapor Documentation Beta

Structure Validator​Results.​In

public struct In<T> where T: Equatable & CustomStringConvertible

ValidatorResult of a validator that validates whether an item is contained in the supplied sequence.

%3 ValidatorResults.In ValidatorResults.In ValidatorResult ValidatorResult ValidatorResults.In->ValidatorResult

Member Of

ValidatorResults

Conforms To

ValidatorResult

Properties

item

let item: T

Description of the item.

items

let items: [T]

Descriptions of the elements of the supplied sequence.

is​Failure

var isFailure: Bool

success​Description

var successDescription: String?

failure​Description

var failureDescription: String?