Struct hedera::TopicMessage
source · #[non_exhaustive]pub struct TopicMessage {
pub consensus_timestamp: OffsetDateTime,
pub contents: Vec<u8>,
pub running_hash: Vec<u8>,
pub running_hash_version: u64,
pub sequence_number: u64,
pub chunks: Option<Vec<TopicMessageChunk>>,
pub transaction: Option<TransactionId>,
}
Expand description
Topic message records.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.consensus_timestamp: OffsetDateTime
The consensus timestamp of the message.
If there are multiple chunks, this is taken from the last chunk.
contents: Vec<u8>
The content of the message.
running_hash: Vec<u8>
The new running hash of the topic that received the message.
If there are multiple chunks, this is taken from the last chunk.
running_hash_version: u64
Version of the SHA-384 digest used to update the running hash.
If there are multiple chunks, this is taken from the last chunk.
sequence_number: u64
The sequence number of the message relative to all other messages for the same topic.
If there are multiple chunks, this is taken from the last chunk.
chunks: Option<Vec<TopicMessageChunk>>
The chunks that make up this message.
transaction: Option<TransactionId>
The TransactionId
of the first chunk, gets copied to every subsequent chunk in the message.
Trait Implementations§
source§impl Clone for TopicMessage
impl Clone for TopicMessage
source§fn clone(&self) -> TopicMessage
fn clone(&self) -> TopicMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TopicMessage
impl RefUnwindSafe for TopicMessage
impl Send for TopicMessage
impl Sync for TopicMessage
impl Unpin for TopicMessage
impl UnwindSafe for TopicMessage
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request