pub struct StoredEventMeta {
pub event_type: String,
pub version: u64,
pub tenant: String,
pub domain: String,
pub aggregate_type: String,
pub aggregate_id: String,
pub command_id: String,
pub position: u64,
pub created_at: Timestamp,
pub schema: u32,
pub redacted: Vec<String>,
pub deployment: String,
}Expand description
What a listener handler gets about an event besides its payload (the evt of
Listener::on).
Fields§
§event_type: String§version: u64The aggregate’s version after this event: 1 for its first event.
tenant: String§domain: StringAlways the domain of the command that caused the event.
aggregate_type: String§aggregate_id: String§command_id: StringThe command that caused the event.
position: u64Global position of the event.
created_at: TimestampWhen the kernel committed the event.
schema: u32Version of the payload format as stored; the handler gets the payload upcast to the version it knows, unless it is raw.
redacted: Vec<String>Fields kept in the vault whose value is not in the payload (null): erased, or not
readable with this key (granted vault_read).
deployment: StringThe code version of the worker that wrote it (crate::Options::deployment); empty if
none.
Trait Implementations§
Source§impl Clone for StoredEventMeta
impl Clone for StoredEventMeta
Source§impl Debug for StoredEventMeta
impl Debug for StoredEventMeta
Source§impl Default for StoredEventMeta
impl Default for StoredEventMeta
impl Eq for StoredEventMeta
Source§impl PartialEq for StoredEventMeta
impl PartialEq for StoredEventMeta
impl StructuralPartialEq for StoredEventMeta
Auto Trait Implementations§
impl Forget for StoredEventMeta
impl Freeze for StoredEventMeta
impl Move for StoredEventMeta
impl RefUnwindSafe for StoredEventMeta
impl Send for StoredEventMetawhere
RawVecInner: Send,
impl Sync for StoredEventMetawhere
RawVecInner: Sync,
impl Unpin for StoredEventMeta
impl UnsafeUnpin for StoredEventMetawhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for StoredEventMetawhere
RawVecInner: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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