identifier.rs

Overview

This file defines the MessageIdentifier struct, which serves as a unique identifier for outbound messages within the messaging system. It encapsulates the OutMsgQueueKey type, providing serialization, deserialization, and convenient conversions from message-related types. This identifier is used primarily to reference messages in outbound message queues and related processing components.

The file implements traits for serialization and deserialization using serde, supports debugging output, and defines conversions from wrapped messages and queue keys. It leverages cryptographic hashing and account identification logic from the underlying tvm_block crate to construct unique keys.


Structs and Implementations

MessageIdentifier

pub struct MessageIdentifier(OutMsgQueueKey);

Methods

Trait Implementations


Important Implementation Details


Interactions with Other Components

The MessageIdentifier acts as a bridge between raw messages and their queue representations, ensuring consistent identification across message processing subsystems.


Diagram: Structure of identifier.rs

classDiagram
class MessageIdentifier {
-OutMsgQueueKey 0:1
+inner()
+from(&WrappedMessage)
+from(Arc<WrappedMessage>)
+from(OutMsgQueueKey)
+serialize()
+deserialize()
+fmt()
}
MessageIdentifier ..> OutMsgQueueKey : encapsulates
MessageIdentifier ..> WrappedMessage : converts from
MessageIdentifier ..|> Debug
MessageIdentifier ..|> Serialize
MessageIdentifier ..|> Deserialize