pub struct CqrsEventDraft<T = AnyValue> {
pub id: Option<String>,
pub event_type: String,
pub payload: T,
pub aggregate_id: Option<String>,
pub correlation_id: Option<String>,
pub causation_id: Option<String>,
}Expand description
CqrsEventDraft data container.
Fields§
§id: Option<String>id field for id.
event_type: Stringevent_type field for event type.
payload: Tpayload field for payload.
aggregate_id: Option<String>aggregate_id field for aggregate id.
correlation_id: Option<String>correlation_id field for correlation id.
causation_id: Option<String>causation_id field for causation id.
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for CqrsEventDraft<T>
impl<T: Clone> Clone for CqrsEventDraft<T>
Source§fn clone(&self) -> CqrsEventDraft<T>
fn clone(&self) -> CqrsEventDraft<T>
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 moreSource§impl<T: Debug> Debug for CqrsEventDraft<T>
impl<T: Debug> Debug for CqrsEventDraft<T>
Source§impl<T: PartialEq> PartialEq for CqrsEventDraft<T>
impl<T: PartialEq> PartialEq for CqrsEventDraft<T>
impl<T> StructuralPartialEq for CqrsEventDraft<T>
Auto Trait Implementations§
impl<T> Freeze for CqrsEventDraft<T>where
T: Freeze,
impl<T> RefUnwindSafe for CqrsEventDraft<T>where
T: RefUnwindSafe,
impl<T> Send for CqrsEventDraft<T>where
T: Send,
impl<T> Sync for CqrsEventDraft<T>where
T: Sync,
impl<T> Unpin for CqrsEventDraft<T>where
T: Unpin,
impl<T> UnsafeUnpin for CqrsEventDraft<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CqrsEventDraft<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