Instance Methodswift 6.0.1Swift
encode(_:forKey:)
mutating func encode(_ value: Int16, forKey key: KeyedEncodingContainer<K>.Key) throws
Other members in extension
Typealiases
Type members
init<Container>(Container
) Creates a new instance with the given container.
Instance members
var codingPath: [any CodingKey]
func encode(String, forKey: KeyedEncodingContainer<K>.Key
) throws func encode(Bool, forKey: KeyedEncodingContainer<K>.Key
) throws func encode(Double, forKey: KeyedEncodingContainer<K>.Key
) throws func encode(Float, forKey: KeyedEncodingContainer<K>.Key
) throws func encode(Int, forKey: KeyedEncodingContainer<K>.Key
) throws func encode(UInt, forKey: KeyedEncodingContainer<K>.Key
) throws func encode<T>(T, forKey: KeyedEncodingContainer<K>.Key
) throws func encode(Int8, forKey: KeyedEncodingContainer<K>.Key
) throws func encode(Int32, forKey: KeyedEncodingContainer<K>.Key
) throws func encode(Int64, forKey: KeyedEncodingContainer<K>.Key
) throws func encode(UInt8, forKey: KeyedEncodingContainer<K>.Key
) throws func encode(Int128, forKey: KeyedEncodingContainer<K>.Key
) throws func encode(UInt16, forKey: KeyedEncodingContainer<K>.Key
) throws func encode(UInt32, forKey: KeyedEncodingContainer<K>.Key
) throws func encode(UInt64, forKey: KeyedEncodingContainer<K>.Key
) throws func encode(UInt128, forKey: KeyedEncodingContainer<K>.Key
) throws func encodeConditional<T>(T, forKey: KeyedEncodingContainer<K>.Key
) throws func encodeIfPresent(String?, forKey: KeyedEncodingContainer<K>.Key
) throws func encodeIfPresent(Bool?, forKey: KeyedEncodingContainer<K>.Key
) throws func encodeIfPresent(Double?, forKey: KeyedEncodingContainer<K>.Key
) throws func encodeIfPresent(Float?, forKey: KeyedEncodingContainer<K>.Key
) throws func encodeIfPresent(Int?, forKey: KeyedEncodingContainer<K>.Key
) throws func encodeIfPresent(UInt?, forKey: KeyedEncodingContainer<K>.Key
) throws func encodeIfPresent<T>(T?, forKey: KeyedEncodingContainer<K>.Key
) throws func encodeIfPresent(Int8?, forKey: KeyedEncodingContainer<K>.Key
) throws func encodeIfPresent(Int16?, forKey: KeyedEncodingContainer<K>.Key
) throws func encodeIfPresent(Int32?, forKey: KeyedEncodingContainer<K>.Key
) throws func encodeIfPresent(Int64?, forKey: KeyedEncodingContainer<K>.Key
) throws func encodeIfPresent(UInt8?, forKey: KeyedEncodingContainer<K>.Key
) throws func encodeIfPresent(Int128?, forKey: KeyedEncodingContainer<K>.Key
) throws func encodeIfPresent(UInt16?, forKey: KeyedEncodingContainer<K>.Key
) throws func encodeIfPresent(UInt32?, forKey: KeyedEncodingContainer<K>.Key
) throws func encodeIfPresent(UInt64?, forKey: KeyedEncodingContainer<K>.Key
) throws func encodeIfPresent(UInt128?, forKey: KeyedEncodingContainer<K>.Key
) throws func encodeNil(forKey: KeyedEncodingContainer<K>.Key
) throws func nestedContainer<NestedKey>(keyedBy: NestedKey.Type, forKey: KeyedEncodingContainer<K>.Key
) -> KeyedEncodingContainer<NestedKey> func nestedUnkeyedContainer(forKey: KeyedEncodingContainer<K>.Key
) -> any UnkeyedEncodingContainer func superEncoder(
) -> any Encoder func superEncoder(forKey: KeyedEncodingContainer<K>.Key
) -> any Encoder