pub struct StreamMessage {
pub id: String,
pub message_type: String,
pub data: Vec<u8>,
pub metadata: Vec<u8>,
pub position: MessagePosition,
}Expand description
A message that is read from a stream
Fields§
§id: StringA unique identifier for a message.
message_type: StringThe type of a message.
data: Vec<u8>The data of a message.
metadata: Vec<u8>The metadata of a message.
position: MessagePositionThe positions (position and revision) of a message in the store and in its stream.
Trait Implementations§
Source§impl Clone for StreamMessage
impl Clone for StreamMessage
Source§fn clone(&self) -> StreamMessage
fn clone(&self) -> StreamMessage
Returns a duplicate 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 StreamMessage
impl RefUnwindSafe for StreamMessage
impl Send for StreamMessage
impl Sync for StreamMessage
impl Unpin for StreamMessage
impl UnwindSafe for StreamMessage
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