pub struct MessageRecord {
pub id: String,
pub peer_node_id: String,
pub direction: MessageDirection,
pub body: String,
pub timestamp_ms: i64,
pub status: MessageStatus,
pub failure_reason: Option<String>,
pub delivered_at_ms: Option<i64>,
pub read_at_ms: Option<i64>,
}Expand description
One stored message — sent or received. Field ordering matches the JSON shape exposed via JSON-RPC.
Fields§
§id: String32-char lowercase hex (UUIDv4 bytes).
peer_node_id: StringPeer node id (32-char lowercase hex).
direction: MessageDirectionsent | received.
body: StringPlaintext UTF-8 body.
timestamp_ms: i64Wall-clock at sender (timestamp_ms from the wire frame for
received, local clock for sent).
status: MessageStatusLifecycle status.
failure_reason: Option<String>Last failure reason (only set when status = Failed).
delivered_at_ms: Option<i64>Wall-clock when delivery ack was applied.
read_at_ms: Option<i64>Wall-clock when read ack was applied.
Trait Implementations§
Source§impl Clone for MessageRecord
impl Clone for MessageRecord
Source§fn clone(&self) -> MessageRecord
fn clone(&self) -> MessageRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageRecord
impl Debug for MessageRecord
Source§impl<'de> Deserialize<'de> for MessageRecord
impl<'de> Deserialize<'de> for MessageRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MessageRecord
impl RefUnwindSafe for MessageRecord
impl Send for MessageRecord
impl Sync for MessageRecord
impl Unpin for MessageRecord
impl UnsafeUnpin for MessageRecord
impl UnwindSafe for MessageRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more