#[non_exhaustive]pub struct MessageMetadata<T> {
pub time: DateTime<Utc>,
pub mtime: u64,
pub seqno: u64,
pub remain: u64,
pub payload: T,
pub producer_name: Option<String>,
}Expand description
Metadata on the Volga message received in Consumer::consume.
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.time: DateTime<Utc>Timestamp.
mtime: u64Milliseconds since epoch.
seqno: u64Sequence number.
remain: u64The number of remaining message the client has indicated it can handle, see the Consumer more function.
payload: TThe message payload.
producer_name: Option<String>Name of the producer.
Trait Implementations§
Source§impl<T: Clone> Clone for MessageMetadata<T>
impl<T: Clone> Clone for MessageMetadata<T>
Source§fn clone(&self) -> MessageMetadata<T>
fn clone(&self) -> MessageMetadata<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for MessageMetadata<T>
impl<T: Debug> Debug for MessageMetadata<T>
Source§impl<'de, T> Deserialize<'de> for MessageMetadata<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for MessageMetadata<T>where
T: Deserialize<'de>,
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
Auto Trait Implementations§
impl<T> Freeze for MessageMetadata<T>where
T: Freeze,
impl<T> RefUnwindSafe for MessageMetadata<T>where
T: RefUnwindSafe,
impl<T> Send for MessageMetadata<T>where
T: Send,
impl<T> Sync for MessageMetadata<T>where
T: Sync,
impl<T> Unpin for MessageMetadata<T>where
T: Unpin,
impl<T> UnsafeUnpin for MessageMetadata<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for MessageMetadata<T>where
T: UnwindSafe,
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