pub struct DomainEvent { /* private fields */ }Expand description
An explicit business event associated with the current call context.
Implementations§
Source§impl DomainEvent
impl DomainEvent
pub fn new(name: impl Into<String>) -> Result<Self, DomainEventError>
pub fn level(self, level: EventLevel) -> Self
pub fn field( self, name: impl Into<String>, value: impl Into<DomainValue>, ) -> Result<Self, DomainEventError>
Trait 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 (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 Debug for DomainEvent
impl Debug for DomainEvent
impl Eq for DomainEvent
Source§impl PartialEq for DomainEvent
impl PartialEq for DomainEvent
impl StructuralPartialEq for DomainEvent
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