pub struct EventStoreReceive {
pub id: String,
pub sequence: u64,
pub timestamp: i64,
pub channel: String,
pub metadata: String,
pub body: Vec<u8>,
pub tags: HashMap<String, String>,
}Expand description
A persistent event received from an Events Store subscription callback.
Delivered to the on_event closure passed to
KubemqClient::subscribe_to_events_store().
Fields§
§id: StringServer-assigned event identifier.
sequence: u64Monotonically increasing sequence number within the channel.
timestamp: i64Server timestamp (Unix nanoseconds) when the event was persisted.
channel: StringThe channel this event was published to.
metadata: StringUTF-8 metadata attached by the publisher.
body: Vec<u8>Message payload bytes.
Key-value tags attached by the publisher.
Trait Implementations§
Source§impl Clone for EventStoreReceive
impl Clone for EventStoreReceive
Source§fn clone(&self) -> EventStoreReceive
fn clone(&self) -> EventStoreReceive
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 EventStoreReceive
impl RefUnwindSafe for EventStoreReceive
impl Send for EventStoreReceive
impl Sync for EventStoreReceive
impl Unpin for EventStoreReceive
impl UnsafeUnpin for EventStoreReceive
impl UnwindSafe for EventStoreReceive
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request