struct CodableConfiguration
protocol DecodableWithConfiguration
protocol DecodingConfigurationProviding
protocol EncodableWithConfiguration
protocol EncodingConfigurationProviding
Availability 有効性
Technology
typealias CodableWithConfiguration = DecodableWithConfiguration
& EncodableWithConfiguration
Codable
is a type alias for the Encodable
and Decodable
protocols.
Codable
は、Encodable
とDecodable
プロトコルに対する型エイリアスです。
Use this protocol to support codability in a type that can’t conform to Codable
by itself, but can do so with additional statically-defined configuration provided by a Codable
instance.
Attributed
uses this approach to allow an instance to contain arbitrary attributes, including frameworks outside of Foundation or the platform SDK. It does this by including one or more Attribute
instances, a type that conforms to Encoding
and Decoding
. An attribute scope like Attribute
defines attribute keys, and conforms to Attribute
to provide configuration instances that know the Attributed
types and their associated Value
types. With this type information, an Attributed
can encode all of its attributes, even from frameworks other than Foundation.
struct CodableConfiguration
protocol DecodableWithConfiguration
protocol DecodingConfigurationProviding
protocol EncodableWithConfiguration
protocol EncodingConfigurationProviding