pub struct MessageEvent {
pub sender: Address,
pub recipient_hash: [u8; 32],
pub message_id: Hash,
pub size: u32,
pub has_payment: bool,
pub block_height: u64,
pub timestamp: u64,
}Expand description
Message event for indexing (emitted by registry)
Fields§
§sender: AddressSender address (visible on-chain)
recipient_hash: [u8; 32]BLAKE3 hash of recipient address
message_id: HashTransaction hash (message ID)
size: u32Message size in bytes
has_payment: boolWhether message has attached payment
block_height: u64Block height when message was included
timestamp: u64Block timestamp
Trait Implementations§
Source§impl Clone for MessageEvent
impl Clone for MessageEvent
Source§fn clone(&self) -> MessageEvent
fn clone(&self) -> MessageEvent
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 MessageEvent
impl Debug for MessageEvent
Source§impl<'de> Deserialize<'de> for MessageEvent
impl<'de> Deserialize<'de> for MessageEvent
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
Source§impl PartialEq for MessageEvent
impl PartialEq for MessageEvent
Source§fn eq(&self, other: &MessageEvent) -> bool
fn eq(&self, other: &MessageEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MessageEvent
impl Serialize for MessageEvent
impl Eq for MessageEvent
impl StructuralPartialEq for MessageEvent
Auto Trait Implementations§
impl Freeze for MessageEvent
impl RefUnwindSafe for MessageEvent
impl Send for MessageEvent
impl Sync for MessageEvent
impl Unpin for MessageEvent
impl UnsafeUnpin for MessageEvent
impl UnwindSafe for MessageEvent
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