CollectionCharacterSet
ValidatorResult
of a validator that validates that all elements of a [String]
contain characters in a given CharacterSet
.
struct CollectionCharacterSet
ValidatorResult
of a validator that validates that all elements of a [String]
contain characters in a given CharacterSet
.
struct CollectionCharacterSet
import Vapor
Vapor 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 ValidatorResults
struct And
ValidatorResult
of “And” Validator
that combines two ValidatorResults
. If both results are successful the combined result is as well.
struct Case<T, E> where T : CustomStringConvertible, T : Sendable, T == E.RawValue, E : CaseIterable, E : RawRepresentable
ValidatorResult
of a validator that validates whether the data can be represented as a specific Enum case.
struct CharacterSet
ValidatorResult
of a validator that validates that a String
contains characters in a given CharacterSet
.
struct Codable
struct Custom
struct Email
ValidatorResult
of a validator that validates whether a String
is a valid email address.
struct Empty
ValidatorResult
of a validator that validates whether the data is empty.
struct In<T> where T : CustomStringConvertible, T : Equatable, T : Sendable
ValidatorResult
of a validator that validates whether an item is contained in the supplied sequence.
struct Invalid
struct Missing
struct Nested
struct NestedEach
struct Nil
ValidatorResult
of a validator that validates that the data is nil
.
struct NilIgnoring
ValidatorResult
of a validator that ignores nil values.
struct Not
struct NotFound
struct Or
ValidatorResult
of “Or” Validator
that combines two ValidatorResults
. If either result is successful the combined result is as well.
struct Pattern
ValidatorResult
of a validator that validates whether a String
matches a RegularExpression pattern
struct Range<T> where T : Comparable, T : Sendable
ValidatorResult
of a validator that validates whether the input is within a supplied range.
struct Skipped
struct TypeMismatch
struct URL
ValidatorResult
of a validator that validates whether a string is a valid URL.
struct Valid
ValidatorResult
of a validator that validates that the data is valid`.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Escapable
protocol Sendable
protocol ValidatorResult : Sendable
let characterSet: Foundation.CharacterSet
The set of characters the input is allowed to contain.
var failureDescription: String? { get }
var isFailure: Bool { get }
let strings: [String]
The validated string.
var successDescription: String? { get }