ConversationId

open class ConversationId : ConversationIdProtocol, @unchecked Sendable, Equatable, Hashable, CustomDebugStringConvertible, CustomStringConvertible

A unique identifier for a single conversation.

The backend provides an opaque string identifying a new conversation. Construct an instance of this newtype to pass that identifier to Rust.

  • Construct a new instance, transferring data from the client layer to Rust.

    Declaration

    Swift

    public convenience init(bytes: Data)
  • Get the raw bytes from this type, transferring data from Rust to the client layer.

    This does not consume the newtype, instead copying the internal data across the FFI boundary.

    Declaration

    Swift

    open func copyBytes() -> Data
  • Declaration

    Swift

    public var debugDescription: String { get }
  • Declaration

    Swift

    public var description: String { get }
  • Declaration

    Swift

    public static func == (self: ConversationId, other: ConversationId) -> Bool
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)