And
ValidatorResult of “And” Validator that combines two ValidatorResults. If both results are successful the combined result is as well.
struct AndValidatorResult of “And” Validator that combines two ValidatorResults. If both results are successful the combined result is as well.
struct Andimport VaporVapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
struct ValidatorResultsstruct Case<T, E> where T : CustomStringConvertible, T : Sendable, T == E.RawValue, E : CaseIterable, E : RawRepresentableValidatorResult of a validator that validates whether the data can be represented as a specific Enum case.
struct CharacterSetValidatorResult of a validator that validates that a String contains characters in a given CharacterSet.
struct Codablestruct CollectionCharacterSetValidatorResult of a validator that validates that all elements of a [String] contain characters in a given CharacterSet.
struct Customstruct EmailValidatorResult of a validator that validates whether a String is a valid email address.
struct EmptyValidatorResult of a validator that validates whether the data is empty.
struct In<T> where T : CustomStringConvertible, T : Equatable, T : SendableValidatorResult of a validator that validates whether an item is contained in the supplied sequence.
struct Invalidstruct Missingstruct Nestedstruct NestedEachstruct NilValidatorResult of a validator that validates that the data is nil.
struct NilIgnoringValidatorResult of a validator that ignores nil values.
struct Notstruct NotFoundstruct OrValidatorResult of “Or” Validator that combines two ValidatorResults. If either result is successful the combined result is as well.
struct PatternValidatorResult of a validator that validates whether a Stringmatches a RegularExpression pattern
struct Range<T> where T : Comparable, T : SendableValidatorResult of a validator that validates whether the input is within a supplied range.
struct Skippedstruct TypeMismatchstruct URLValidatorResult of a validator that validates whether a string is a valid URL.
struct ValidValidatorResult of a validator that validates that the data is valid`.
protocol CopyableA type whose values can be implicitly or explicitly copied.
protocol Escapableprotocol Sendableprotocol ValidatorResult : Sendablevar failureDescription: String? { get }var isFailure: Bool { get }let left: ValidatorResultValidatorResult of left hand side of the “And” validation.
let right: ValidatorResultValidatorResult of right hand side of the “And” validation.
var successDescription: String? { get }