Vapor Documentation Beta

Enumeration Validation​Key

public enum ValidationKey
%3 ValidationKey ValidationKey ExpressibleByStringLiteral ExpressibleByStringLiteral ValidationKey->ExpressibleByStringLiteral ExpressibleByIntegerLiteral ExpressibleByIntegerLiteral ValidationKey->ExpressibleByIntegerLiteral CustomStringConvertible CustomStringConvertible ValidationKey->CustomStringConvertible CodingKey CodingKey ValidationKey->CodingKey

Conforms To

CodingKey
CustomStringConvertible
ExpressibleByIntegerLiteral
ExpressibleByStringLiteral

Initializers

init?(string​Value:​)

public init?(stringValue: String)

init?(int​Value:​)

public init?(intValue: Int)

init(string​Literal:​)

public init(stringLiteral value: String)

init(integer​Literal:​)

public init(integerLiteral value: Int)

Enumeration Cases

integer

case integer(: Int)

string

case string(: String)

Properties

string​Value

var stringValue: String

int​Value

var intValue: Int?

description

var description: String