encodeIfPresent(_:forKey:)
mutating func encodeIfPresent(_ value: UInt16?, forKey key: Self.Key) throws
mutating func encodeIfPresent(_ value: UInt16?, forKey key: Self.Key) throws
ss30KeyedEncodingContainerProtocolPsE15encodeIfPresent_6forKeyys6UInt16VSg_0I0QztKF
What are these?1LZ0J
import Swift
protocol KeyedEncodingContainerProtocol
A type that provides a view into an encoder’s storage and is used to hold the encoded properties of an encodable type in a keyed manner.
@frozen struct UInt16
A 16-bit unsigned integer value type.
associatedtype Key : CodingKey
mutating func encodeIfPresent(_ value: String?, forKey key: Self.Key) throws
Encodes the given value for the given key if it is not nil
.
mutating func encodeIfPresent(_ value: Bool?, forKey key: Self.Key) throws
Encodes the given value for the given key if it is not nil
.
mutating func encodeIfPresent(_ value: Double?, forKey key: Self.Key) throws
Encodes the given value for the given key if it is not nil
.
mutating func encodeIfPresent(_ value: Float?, forKey key: Self.Key) throws
Encodes the given value for the given key if it is not nil
.
mutating func encodeIfPresent(_ value: Int?, forKey key: Self.Key) throws
Encodes the given value for the given key if it is not nil
.
mutating func encodeIfPresent(_ value: UInt?, forKey key: Self.Key) throws
Encodes the given value for the given key if it is not nil
.
mutating func encodeIfPresent<T>(_ value: T?, forKey key: Self.Key) throws where T : Encodable
Encodes the given value for the given key if it is not nil
.
mutating func encodeIfPresent(_ value: Int8?, forKey key: Self.Key) throws
Encodes the given value for the given key if it is not nil
.
mutating func encodeIfPresent(_ value: Int16?, forKey key: Self.Key) throws
Encodes the given value for the given key if it is not nil
.
mutating func encodeIfPresent(_ value: Int32?, forKey key: Self.Key) throws
Encodes the given value for the given key if it is not nil
.
mutating func encodeIfPresent(_ value: Int64?, forKey key: Self.Key) throws
Encodes the given value for the given key if it is not nil
.
mutating func encodeIfPresent(_ value: UInt8?, forKey key: Self.Key) throws
Encodes the given value for the given key if it is not nil
.
mutating func encodeIfPresent(_ value: Int128?, forKey key: Self.Key) throws
Encodes the given value for the given key if it is not nil
.
mutating func encodeIfPresent(_ value: UInt16?, forKey key: Self.Key) throws
Encodes the given value for the given key if it is not nil
.
mutating func encodeIfPresent(_ value: UInt32?, forKey key: Self.Key) throws
Encodes the given value for the given key if it is not nil
.
mutating func encodeIfPresent(_ value: UInt64?, forKey key: Self.Key) throws
Encodes the given value for the given key if it is not nil
.
mutating func encodeIfPresent(_ value: UInt128?, forKey key: Self.Key) throws
Encodes the given value for the given key if it is not nil
.
mutating func encode(_ value: Int128, forKey key: Self.Key) throws
mutating func encode(_ value: UInt128, forKey key: Self.Key) throws
mutating func encodeConditional<T>(_ object: T, forKey key: Self.Key) throws where T : AnyObject, T : Encodable
mutating func encodeIfPresent(_ value: String?, forKey key: Self.Key) throws
mutating func encodeIfPresent(_ value: Bool?, forKey key: Self.Key) throws
mutating func encodeIfPresent(_ value: Double?, forKey key: Self.Key) throws
mutating func encodeIfPresent(_ value: Float?, forKey key: Self.Key) throws
mutating func encodeIfPresent(_ value: Int?, forKey key: Self.Key) throws
mutating func encodeIfPresent(_ value: UInt?, forKey key: Self.Key) throws
mutating func encodeIfPresent<T>(_ value: T?, forKey key: Self.Key) throws where T : Encodable
mutating func encodeIfPresent(_ value: Int8?, forKey key: Self.Key) throws
mutating func encodeIfPresent(_ value: Int16?, forKey key: Self.Key) throws
mutating func encodeIfPresent(_ value: Int32?, forKey key: Self.Key) throws
mutating func encodeIfPresent(_ value: Int64?, forKey key: Self.Key) throws
mutating func encodeIfPresent(_ value: UInt8?, forKey key: Self.Key) throws
mutating func encodeIfPresent(_ value: Int128?, forKey key: Self.Key) throws
mutating func encodeIfPresent(_ value: UInt32?, forKey key: Self.Key) throws
mutating func encodeIfPresent(_ value: UInt64?, forKey key: Self.Key) throws
mutating func encodeIfPresent(_ value: UInt128?, forKey key: Self.Key) throws