Structs
The following structs are available globally.
-
Error that is thrown when a validation fails. Proivdes the validator type and the value that failed validation
See moreDeclaration
Swift
public struct ValidatorError: Error, CustomStringConvertible
-
Wraps a type together with one validator. Provides a failable initializer that will only return a value of
See moreValidated
if the providedWrapperType
value fulfills the requirements of the specifiedValidator
.Declaration
Swift
public struct Validated<V: Validator>: ValidatedType