Encoder
extension Encoder
-
Undocumented
Declaration
Swift
public func encodeSingle<T>(_ value: T) throws where T : Encodable
-
Undocumented
Declaration
Swift
public func encode<T>(_ value: T, for key: String) throws where T : Encodable
-
Undocumented
Declaration
Swift
public func encode<T, K>(_ value: T, for key: K) throws where T : Encodable, K : CodingKey
-
Undocumented
Declaration
Swift
public func encodeIf<T>(_ value: T?, for key: String) throws where T : Encodable
-
Undocumented
Declaration
Swift
public func encodeIf<T, K>(_ value: T?, for key: K) throws where T : Encodable, K : CodingKey
-
Undocumented
Declaration
Swift
public func encodeAny<T>(_ value: T, for key: String) throws
-
Undocumented
Declaration
Swift
public func encodeAny<T, K>(_ value: T, for key: K) throws where K : CodingKey
-
Undocumented
Declaration
Swift
public func encodeAnyIf<T>(_ value: T?, for key: String) throws
-
Undocumented
Declaration
Swift
public func encodeAnyIf<T, K>(_ value: T?, for key: K) throws where K : CodingKey
-
Undocumented
Declaration
Swift
public func encode<F>(_ date: Date, for key: String, using formatter: F) throws where F : AnyDateFormatter
-
Undocumented
Declaration
Swift
public func encode<K, F>(_ date: Date, for key: K, using formatter: F) throws where K : CodingKey, F : AnyDateFormatter
-
Undocumented
Declaration
Swift
public func encodeIf<F>(_ date: Date?, for key: String, using formatter: F) throws where F : AnyDateFormatter
-
Undocumented
Declaration
Swift
public func encodeIf<K, F>(_ date: Date?, for key: K, using formatter: F) throws where K : CodingKey, F : AnyDateFormatter
-
Undocumented
Declaration
Swift
public subscript<T>(stringKey: String) -> T? where T : Encodable { get nonmutating set }
-
Undocumented
Declaration
Swift
public subscript<T, K>(codingKey: K) -> T? where T : Encodable, K : CodingKey { get nonmutating set }
-
Undocumented
Declaration
Swift
public subscript<T>(stringKey: String) -> T? { get nonmutating set }
-
Undocumented
Declaration
Swift
public subscript<T, K>(codingKey: K) -> T? where K : CodingKey { get nonmutating set }
-
Undocumented
Declaration
Swift
public func encodeSafe<T>(_ value: T?, for stringKey: String) throws where T : Encodable
-
Undocumented
Declaration
Swift
public func encodeSafe<T, K>(_ value: T?, for codingKey: K) throws where T : Encodable, K : CodingKey
-
Undocumented
Declaration
Swift
public func encodeSafeAny<T>(_ value: T?, for stringKey: String) throws
-
Undocumented
Declaration
Swift
public func encodeSafeAny<T, K>(_ value: T?, for codingKey: K) throws where K : CodingKey