Struct async_nats::jetstream::message::StreamMessage
source · pub struct StreamMessage {
pub subject: Subject,
pub sequence: u64,
pub headers: HeaderMap,
pub payload: Bytes,
pub time: OffsetDateTime,
}
Expand description
A message received directly from the stream, without leveraging a consumer.
Fields§
§subject: Subject
§sequence: u64
§headers: HeaderMap
§payload: Bytes
§time: OffsetDateTime
Trait Implementations§
source§impl Clone for StreamMessage
impl Clone for StreamMessage
source§fn clone(&self) -> StreamMessage
fn clone(&self) -> StreamMessage
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 moresource§impl Debug for StreamMessage
impl Debug for StreamMessage
source§impl TryFrom<Message> for StreamMessage
impl TryFrom<Message> for StreamMessage
Auto 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)