MappedValue
@propertyWrapper
public final class MappedValue<Value>
extension MappedValue: CustomStringConvertible, CustomDebugStringConvertible
extension MappedValue: EncodableAnyMappedValue
extension MappedValue: DecodableAnyMappedValue
extension MappedValue: JSONMappedValue
extension MappedValue: Equatable where Value: Equatable
extension MappedValue: EncodableMappedValue where Value: Encodable
extension MappedValue: DecodableMappedValue where Value: Decodable
映射属性注解
-
Undocumented
Declaration
Swift
public var wrappedValue: Value
-
Undocumented
Declaration
Swift
public init(wrappedValue: Value, ignored: Bool)
-
Undocumented
Declaration
Swift
public convenience init(wrappedValue: Value, _ stringKey: String? = nil, encode: ((_ encoder: Encoder, _ value: Value) throws -> Void)? = nil, decode: ((_ decoder: Decoder) throws -> Value?)? = nil)
-
Undocumented
Declaration
Swift
public convenience init(wrappedValue: Value, _ stringKeys: String..., encode: ((_ encoder: Encoder, _ value: Value) throws -> Void)? = nil, decode: ((_ decoder: Decoder) throws -> Value?)? = nil)
-
Undocumented
Declaration
Swift
public convenience init(wrappedValue: Value, _ codingKeys: CodingKey..., encode: ((_ encoder: Encoder, _ value: Value) throws -> Void)? = nil, decode: ((_ decoder: Decoder) throws -> Value?)? = nil)
-
Declaration
Swift
public var description: String { get }
-
Declaration
Swift
public var debugDescription: String { get }
-
Undocumented
Declaration
Swift
public func encode<Label>(to encoder: Encoder, label: Label) throws where Label : StringProtocol
-
Undocumented
Declaration
Swift
public func decode<Label>(from decoder: Decoder, label: Label) throws where Label : StringProtocol
-
Undocumented
Declaration
Swift
public func mappingKeys() -> [String]?
-
Undocumented
Declaration
Swift
public func mappingValue() -> Any
-
Undocumented
Declaration
Swift
public func mappingValue(_ value: Any)
-
Declaration
Swift
public static func == (lhs: MappedValue<Value>, rhs: MappedValue<Value>) -> Bool
-
Undocumented
Declaration
Swift
public func encode<Label>(to encoder: Encoder, label: Label) throws where Label : StringProtocol
-
Undocumented
Declaration
Swift
public func decode<Label>(from decoder: Decoder, label: Label) throws where Label : StringProtocol