---
title: CodingUserInfoKey
framework: swift
role: symbol
role_heading: Structure
path: swift/codinguserinfokey
---

# CodingUserInfoKey

A user-defined key for providing context during encoding and decoding.

## Declaration

```swift
struct CodingUserInfoKey
```

## Topics

### Operators

- [==(_:_:)](swift/codinguserinfokey/==(_:_:).md)

### Initializers

- [init(rawValue:)](swift/codinguserinfokey/init(rawvalue:).md)

### Instance Properties

- [hashValue](swift/codinguserinfokey/hashvalue.md)
- [rawValue](swift/codinguserinfokey/rawvalue-swift.property.md)

### Instance Methods

- [hash(into:)](swift/codinguserinfokey/hash(into:).md)

### Type Aliases

- [CodingUserInfoKey.RawValue](swift/codinguserinfokey/rawvalue-swift.typealias.md)

### Type Properties

- [actorSystemKey](swift/codinguserinfokey/actorsystemkey.md)

### Default Implementations

- [Equatable Implementations](swift/codinguserinfokey/equatable-implementations.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Custom Encoding and Decoding

- [Encoding and Decoding Custom Types](foundation/encoding-and-decoding-custom-types.md)
- [Codable](swift/codable.md)
- [Encodable](swift/encodable.md)
- [Decodable](swift/decodable.md)
- [CodingKey](swift/codingkey.md)
- [CodingKeyRepresentable](swift/codingkeyrepresentable.md)
