final class TraitEncoder
Public interface for encoding Trait data.
-
Undocumented
Declaration
Swift
static func forceJSONFormatForTesting()
-
Undocumented
Declaration
-
Undocumented
Declaration
Swift
var encodingFormatResolvesToProtobuf: Bool { get }
-
Undocumented
Declaration
Swift
@_spi(Unknown) func setPayload(_ payload: TraitPayload)
-
Undocumented
Declaration
Swift
@discardableResult func wrapPayload(namespace: [UInt32]) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func encode<T>(tag: TagID, value: T) throws -> Self where T : StructDataRepresentable
-
Undocumented
Declaration
Swift
@discardableResult func encode<T>(tag: TagID, value: [T]) throws -> Self where T : StructDataRepresentable
-
Undocumented
Declaration
Swift
@discardableResult func encode<T>(tag: TagID, value: T?) throws -> Self where T : StructDataRepresentable
-
Undocumented
Declaration
Swift
@discardableResult func encode<T>(tag: TagID, value: [T]?) throws -> Self where T : StructDataRepresentable
-
Undocumented
Declaration
Swift
@discardableResult func encode<K, V>(tag: TagID, value: [K : V]) throws -> Self where K : Scalar, V : StructDataRepresentable