Protocolswift 6.0.1Swift
CodingKey
A type that can be used as a key for encoding and decoding.
protocol CodingKey : CustomDebugStringConvertible, CustomStringConvertible, Sendable
Supertypes
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Sendable
Requirements
Type members
init?(intValue: Int
) Creates a new instance from the specified integer.
init?(stringValue: String
) Creates a new instance from the given string.
Instance members
var intValue: Int?
The value to use in an integer-indexed collection (e.g. an int-keyed dictionary).
var stringValue: String
The string to use in a named collection (e.g. a string-keyed dictionary).
Citizens in Swift
Instance members
var debugDescription: String
A textual representation of this key, suitable for debugging.
var description: String
A textual representation of this key.