Structures
The following structures are available globally.
-
A constraint to check if all of the child constraints are valid or not.
See moreDeclaration
Swift
public struct AndConstraint : Constraint -
A constraint to validate if a value is blank.
See moreDeclaration
Swift
public struct BlankConstraint : Constraint -
A constraint to validate if a value is a valid boolean value.
See moreDeclaration
Swift
public struct BoolConstraint : Constraint -
A constraint to validate if a value exists in predefined choices.
See moreDeclaration
Swift
public struct ChoiceConstraint : Constraint -
A constraint to validate if a value is a valid date.
See moreDeclaration
Swift
public struct DateConstraint : Constraint -
A constraint to validate if a value is a valid email address.
See moreDeclaration
Swift
public struct EmailConstraint : Constraint -
A constraint to validate if a value is a valid IP address.
See moreDeclaration
Swift
public struct IPConstraint : Constraint -
A constraint to validate if a value is an integer number.
See moreDeclaration
Swift
public struct IntegerConstraint : Constraint -
A constraint to validate if a value is a JSON string.
See moreDeclaration
Swift
public struct JSONConstraint : Constraint -
A constraint to validate if a value is with a valid length.
See moreDeclaration
Swift
public struct LengthConstraint : Constraint -
A constraint to validate if a value is not blank.
See moreDeclaration
Swift
public struct NotBlankConstraint : Constraint -
A constraint to check if at least one of the child constraints is valid or not.
See moreDeclaration
Swift
public struct OrConstraint : Constraint -
A constraint to validate if a value matches a regular expression pattern.
See moreDeclaration
Swift
public struct RegexConstraint : Constraint -
A constraint to validate if a value is URL.
See moreDeclaration
Swift
public struct URLConstraint : Constraint -
A constraint to validate if a value is UUID.
See moreDeclaration
Swift
public struct UUIDConstraint : Constraint -
A constraint to validate if a value is a valid VIN.
See moreDeclaration
Swift
public struct VINConstraint : Constraint -
An error thrown by
See moreConstraintValidatorfor an invalid value.Declaration
Swift
public struct ConstraintViolation : LocalizedError -
Helps to create a custom dictionary of keys and values. E.g.
See moreDictionaryCollection<String, Constraint>,DictionaryCollection<String, ConstraintViolation>, etc.Declaration
Swift
public struct DictionaryCollection<T, V> where T : Hashableextension DictionaryCollection: Collection
View on GitHub
Install in Dash
Structures Reference