Vapor Documentation Beta

Structure Validator​Results.​And

public struct And

ValidatorResult of "And" Validator that combines two ValidatorResults. If both results are successful the combined result is as well.

%3 ValidatorResults.And ValidatorResults.And ValidatorResult ValidatorResult ValidatorResults.And->ValidatorResult

Member Of

ValidatorResults

Conforms To

ValidatorResult

Properties

left

let left: ValidatorResult

ValidatorResult of left hand side of the "And" validation.

right

let right: ValidatorResult

ValidatorResult of right hand side of the "And" validation.

is​Failure

var isFailure: Bool

success​Description

var successDescription: String?

failure​Description

var failureDescription: String?