SmartDecodingOption
public enum SmartDecodingOption : Hashable
Undocumented
-
The default policy for date is ReferenceDate (January 1, 2001 00:00:00 UTC), in seconds.
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) -
附加用于日志系统的上下文信息,例如网络请求的 URL、参数、调用位置等。
Declaration
Swift
case logContext(header: String, footer: String) -
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
View on GitHub