Vapor Documentation Beta

Structure Validator​Results.​Valid

public struct Valid

ValidatorResult of a validator that validates that the data is valid`.

%3 ValidatorResults.Valid ValidatorResults.Valid ValidatorResult ValidatorResult ValidatorResults.Valid->ValidatorResult

Member Of

ValidatorResults

Conforms To

ValidatorResult

Properties

is​Valid

let isValid: Bool = true

As this validates nothing, this is always true.

is​Failure

var isFailure: Bool

success​Description

var successDescription: String?

failure​Description

var failureDescription: String?