Vapor Documentation Beta

Structure Validator​Results.​Or

public struct Or

ValidatorResult of "Or" Validator that combines two ValidatorResults. If either result is successful the combined result is as well.

%3 ValidatorResults.Or ValidatorResults.Or ValidatorResult ValidatorResult ValidatorResults.Or->ValidatorResult

Member Of

ValidatorResults

Conforms To

ValidatorResult

Properties

left

let left: ValidatorResult

ValidatorResult of left hand side.

right

let right: ValidatorResult

ValidatorResult of right hand side.

is​Failure

var isFailure: Bool

success​Description

var successDescription: String?

failure​Description

var failureDescription: String?