SwiftstructReplicatorEngine
struct ReplicatorEngine.Message
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.CustomStringConvertible
- protocolSwift.Decodable
- protocolSwift.Encodable
- protocolSwift.Identifiable
Members 10
- func
static decodeTestHeaderMessage(data: Foundation.Data) throws -> (String, ReplicatorEngine.Message)? - field
var encodedBody: Foundation.Data - field
var id: Foundation.UUID - field
var messageType: String - field
var protocolVersion: UInt64 - field
var responseToID: Foundation.UUID? - field
var senderDeviceID: String - init
init(id: Foundation.UUID, responseToID: Foundation.UUID?, messageType: String, senderDeviceID: String, protocolVersion: UInt64, encodedBody: Foundation.Data) -> ReplicatorEngine.Message - typealias
typealias ID = Foundation.UUID - var
var description: String { get }
Header
struct Message { enum CodingKeys { case id case responseToID case messageType case senderDeviceID case protocolVersion case encodedBody } var id: Foundation.UUID var responseToID: Foundation.UUID? var messageType: Swift.String var senderDeviceID: Swift.String var protocolVersion: Swift.UInt64 var encodedBody: Foundation.Data init(id: Foundation.UUID, responseToID: Foundation.UUID?, messageType: Swift.String, senderDeviceID: Swift.String, protocolVersion: Swift.UInt64, encodedBody: Foundation.Data) var description: Swift.String { get } static func decodeTestHeaderMessage(data: Foundation.Data) throws -> (Swift.String, ReplicatorEngine.Message)? }