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 mssage.
headers: Option<String>
Raw header string, if any.
time: DateTime
The time the message was published.
Trait Implementations
sourceimpl Clone for RawStreamMessage
impl Clone for RawStreamMessage
sourcefn clone(&self) -> RawStreamMessage
fn clone(&self) -> RawStreamMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RawStreamMessage
impl Debug for RawStreamMessage
sourceimpl<'de> Deserialize<'de> for RawStreamMessage
impl<'de> Deserialize<'de> for RawStreamMessage
sourcefn 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
sourceimpl Serialize for RawStreamMessage
impl Serialize for RawStreamMessage
sourceimpl TryFrom<RawStreamMessage> for StreamMessage
impl TryFrom<RawStreamMessage> for StreamMessage
sourcefn 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 RefUnwindSafe for RawStreamMessage
impl Send for RawStreamMessage
impl Sync for RawStreamMessage
impl Unpin for RawStreamMessage
impl UnwindSafe for RawStreamMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more