SmartDecodingOption
public enum SmartDecodingOption : Hashable
Options for SmartCodable parsing
-
date的默认策略是ReferenceDate(参考日期是指2001年1月1日 00:00:00 UTC),以秒为单位。
Declaration
Swift
case date(JSONDecoder.DateDecodingStrategy)
-
Undocumented
Declaration
Swift
case data(JSONDecoder.SmartDataDecodingStrategy)
-
Undocumented
Declaration
Swift
case float(JSONDecoder.NonConformingFloatDecodingStrategy)
-
The mapping strategy for keys during parsing
Declaration
Swift
case key(JSONDecoder.SmartKeyDecodingStrategy)
-
Handles the hash value, ignoring the impact of associated values.
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
Declaration
Swift
public static func == (lhs: SmartDecodingOption, rhs: SmartDecodingOption) -> Bool