MetaKeyedEncodingContainer
open class MetaKeyedEncodingContainer<K> : KeyedEncodingContainerProtocol where K : CodingKey
Manages a EncodingKeyedContainerMeta
-
Declaration
Swift
public typealias Key = K
-
A reference to this containers underlying
EncodingKeyedContainerMeta
Declaration
Swift
open var reference: Reference
-
The encoder that created this container.
Encoding, creating new containers and creating super encoders is delegated to it.
Declaration
Swift
public let encoder: MetaEncoder
-
Declaration
Swift
public let codingPath: [CodingKey]
-
Declaration
Swift
public init(referencing reference: Reference, at codingPath: [CodingKey], encoder: MetaEncoder)
-
Declaration
Swift
public func nestedContainer<NestedKey>(keyedBy keyType: NestedKey.Type, forKey key: K) -> KeyedEncodingContainer<NestedKey> where NestedKey : CodingKey
-
Declaration
Swift
public func nestedUnkeyedContainer(forKey key: K) -> UnkeyedEncodingContainer
-
Declaration
Swift
public func superEncoder() -> Encoder
-
Declaration
Swift
public func superEncoder(forKey key: K) -> Encoder
-
Create a new reference for the element at the given coding key.
nestedContainer, nestedUnkeyedContainer and superEncoder use this method to create element references.
Declaration
Swift
open func createElementReference(for key: CodingKey) -> Reference