Vapor Documentation Beta

Structure Validator​Results.​Character​Set

public struct CharacterSet

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

%3 ValidatorResults.CharacterSet ValidatorResults.CharacterSet ValidatorResult ValidatorResult ValidatorResults.CharacterSet->ValidatorResult

Member Of

ValidatorResults

Conforms To

ValidatorResult

Properties

string

let string: String

The validated string.

character​Set

let characterSet: Foundation.CharacterSet

The set of characters the input is allowed to contain.

invalid​Slice

var invalidSlice: String?

is​Failure

var isFailure: Bool

success​Description

var successDescription: String?

failure​Description

var failureDescription: String?