Struct nats::jetstream::RawStreamMessage
source · pub struct RawStreamMessage {
pub subject: String,
pub sequence: u64,
pub data: String,
pub headers: Option<String>,
pub time: DateTime,
}
Expand description
A raw stream message in the representation it is stored.
Fields§
§subject: String
Subject of the message.
sequence: u64
Sequence of the message.
data: String
Data of the message.
headers: Option<String>
Raw header string, if any.
time: DateTime
The time the message was published.
Trait Implementations§
source§impl Clone for RawStreamMessage
impl Clone for RawStreamMessage
source§fn clone(&self) -> RawStreamMessage
fn clone(&self) -> RawStreamMessage
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 RawStreamMessage
impl Debug for RawStreamMessage
source§impl<'de> Deserialize<'de> for RawStreamMessage
impl<'de> Deserialize<'de> for RawStreamMessage
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 Serialize for RawStreamMessage
impl Serialize for RawStreamMessage
source§impl TryFrom<RawStreamMessage> for StreamMessage
impl TryFrom<RawStreamMessage> for StreamMessage
source§fn try_from(raw_message: RawStreamMessage) -> Result<StreamMessage, Self::Error>
fn try_from(raw_message: RawStreamMessage) -> Result<StreamMessage, Self::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RawStreamMessage
impl RefUnwindSafe for RawStreamMessage
impl Send for RawStreamMessage
impl Sync for RawStreamMessage
impl Unpin for RawStreamMessage
impl UnwindSafe for RawStreamMessage
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