IgnoredKey

@propertyWrapper
public struct IgnoredKey<T> : Codable

Undocumented

  • The underlying value being wrapped

    Declaration

    Swift

    public var wrappedValue: T
  • Initializes an IgnoredKey with a wrapped value and encoding control

    Declaration

    Swift

    public init(wrappedValue: T, isEncodable: Bool = false)

    Parameters

    wrappedValue

    The initial/default value

    isEncodable

    Whether the property should be included in encoding (default: false)

  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • The resolution triggered by the other three parties may be resolved here.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws