CodingUserInfoKey
A user-defined key for providing context during encoding and decoding.
struct CodingUserInfoKey
Citizens in Swift
Conformances
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable
A type that can be converted to and from an associated raw value.
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
Members
init?(rawValue: String
) Creates a new instance with the given raw value.
var hashValue: Int
The key’s hash value.
let rawValue: String
The key’s string value.
static func == (CodingUserInfoKey, CodingUserInfoKey
) -> Bool Returns a Boolean value indicating whether the given keys are equal.
func hash(into: inout Hasher
) Hashes the essential components of this value by feeding them into the given hasher.
typealias RawValue
Features
Available in Distributed
Members
static let actorSystemKey: CodingUserInfoKey
Key which is required to be set on a
Decoder
’suserInfo
while attempting toinit(from:)
aDistributedActor
. The stored value under this key must conform toDistributedActorSystem
.