pub struct DomainErrorContext {
pub error: DomainError,
pub source_event: EventId,
pub position: DagPosition,
pub correlation_id: EventId,
}Expand description
Domain error with event context for correlation and replay.
Fields§
§error: DomainErrorThe domain error
source_event: EventIdEvent that caused this error
position: DagPositionPosition in the DAG where error occurred
correlation_id: EventIdCorrelation ID for tracing
Trait Implementations§
Source§impl Clone for DomainErrorContext
impl Clone for DomainErrorContext
Source§fn clone(&self) -> DomainErrorContext
fn clone(&self) -> DomainErrorContext
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 ComposeSchema for DomainErrorContext
impl ComposeSchema for DomainErrorContext
Source§impl Debug for DomainErrorContext
impl Debug for DomainErrorContext
Source§impl<'de> Deserialize<'de> for DomainErrorContext
impl<'de> Deserialize<'de> for DomainErrorContext
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
Source§impl PartialEq for DomainErrorContext
impl PartialEq for DomainErrorContext
Source§impl Serialize for DomainErrorContext
impl Serialize for DomainErrorContext
Source§impl ToSchema for DomainErrorContext
impl ToSchema for DomainErrorContext
impl StructuralPartialEq for DomainErrorContext
Auto Trait Implementations§
impl Freeze for DomainErrorContext
impl RefUnwindSafe for DomainErrorContext
impl Send for DomainErrorContext
impl Sync for DomainErrorContext
impl Unpin for DomainErrorContext
impl UnwindSafe for DomainErrorContext
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