Skip to main content

Module types

Module types 

Source
Expand description

Typed row shapes returned by the MemoryStore trait.

Replaces the prior (String, String, String) tuples on search_messages and the (String, String) tuples on get_history so consumers never see raw SQLite timestamp strings. timestamp and updated_at are parsed at fetch time into SystemTime; consumers compare and format from there.

Structsยง

HistoryRow
One closed-conversation summary row returned by get_history. updated_at is parsed from SQLite at fetch time.
MessageRow
A single message row, returned by search_messages and get_message_by_id. timestamp is parsed from the SQLite TIMESTAMP column at fetch time so consumers compare against SystemTime directly instead of parsing a string.