pub struct DomainEvent {
pub actor: ActorName,
pub kind: EventKind,
pub timestamp: DateTime<Utc>,
pub context: EventContext,
}Expand description
A domain event — streamable via SSE, persistable, subscribable.
Fields§
§actor: ActorName§kind: EventKind§timestamp: DateTime<Utc>§context: EventContextTrait Implementations§
Source§impl Clone for DomainEvent
impl Clone for DomainEvent
Source§fn clone(&self) -> DomainEvent
fn clone(&self) -> DomainEvent
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 Debug for DomainEvent
impl Debug for DomainEvent
Source§impl<'de> Deserialize<'de> for DomainEvent
impl<'de> Deserialize<'de> for DomainEvent
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 Freeze for DomainEvent
impl RefUnwindSafe for DomainEvent
impl Send for DomainEvent
impl Sync for DomainEvent
impl Unpin for DomainEvent
impl UnsafeUnpin for DomainEvent
impl UnwindSafe for DomainEvent
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