pub struct EventEnvelope<A>where
A: Aggregate,{
pub event_id: String,
pub aggregate_id: String,
pub version: usize,
pub payload: A::Event,
pub metadata: HashMap<String, String>,
pub at: DateTime<Utc>,
}Fields§
§event_id: String§aggregate_id: StringThe id of the aggregate instance.
version: usizeThe version number for an aggregate instance.
payload: A::EventEvent payload.
metadata: HashMap<String, String>Additional metadata.
at: DateTime<Utc>The time when the event was created.
Trait Implementations§
Source§impl<A> Clone for EventEnvelope<A>
impl<A> Clone for EventEnvelope<A>
Source§fn clone(&self) -> EventEnvelope<A>
fn clone(&self) -> EventEnvelope<A>
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<A> Debug for EventEnvelope<A>
impl<A> Debug for EventEnvelope<A>
Source§impl<'de, A> Deserialize<'de> for EventEnvelope<A>
impl<'de, A> Deserialize<'de> for EventEnvelope<A>
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<A> Freeze for EventEnvelope<A>
impl<A> RefUnwindSafe for EventEnvelope<A>
impl<A> Send for EventEnvelope<A>
impl<A> Sync for EventEnvelope<A>
impl<A> Unpin for EventEnvelope<A>
impl<A> UnsafeUnpin for EventEnvelope<A>
impl<A> UnwindSafe for EventEnvelope<A>
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