Vapor Documentation Beta

Structure Validator​Results

public struct ValidatorResults

Nested Types

ValidatorResults.Nested
ValidatorResults.Skipped
ValidatorResults.Missing
ValidatorResults.NotFound
ValidatorResults.Codable
ValidatorResults.Invalid
ValidatorResults.TypeMismatch
ValidatorResults.And

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

ValidatorResults.Case

ValidatorResult of a validator thaat validates whether the data can be represented as a specific Enum case.

ValidatorResults.CharacterSet

ValidatorResult of a validator that validates that a String contains characters in a given CharacterSet.

ValidatorResults.Email

ValidatorResult of a validator that validates whether a String is a valid email address.

ValidatorResults.Empty

ValidatorResult of a validator that validates whether the data is empty.

ValidatorResults.In

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

ValidatorResults.Nil

ValidatorResult of a validator that validates that the data is nil.

ValidatorResults.NilIgnoring

ValidatorResult of a validator that ignores nil values.

ValidatorResults.Not
ValidatorResults.Or

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

ValidatorResults.Range

ValidatorResult of a validator that validates whether the input is within a supplied range.

ValidatorResults.URL

ValidatorResult of a validator that validates whether a string is a valid URL.

ValidatorResults.Valid

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