pub struct ErrorContext<T: Debug + Clone + Send + Sync> {
pub timestamp: DateTime<Utc>,
pub item: Option<T>,
pub component_name: String,
pub component_type: String,
}Expand description
Context information about when and where an error occurred.
This struct provides detailed information about the circumstances surrounding an error, including the timestamp, the item being processed (if any), and the component that encountered the error.
Fields§
§timestamp: DateTime<Utc>The timestamp when the error occurred.
item: Option<T>The item being processed when the error occurred, if available.
component_name: StringThe name of the component that encountered the error.
component_type: StringThe type of the component that encountered the error.
Trait Implementations§
Source§impl<T: Clone + Debug + Clone + Send + Sync> Clone for ErrorContext<T>
impl<T: Clone + Debug + Clone + Send + Sync> Clone for ErrorContext<T>
Source§fn clone(&self) -> ErrorContext<T>
fn clone(&self) -> ErrorContext<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 moreimpl<T: Debug + Clone + Send + Sync> StructuralPartialEq for ErrorContext<T>
Auto Trait Implementations§
impl<T> Freeze for ErrorContext<T>where
T: Freeze,
impl<T> RefUnwindSafe for ErrorContext<T>where
T: RefUnwindSafe,
impl<T> Send for ErrorContext<T>
impl<T> Sync for ErrorContext<T>
impl<T> Unpin for ErrorContext<T>where
T: Unpin,
impl<T> UnwindSafe for ErrorContext<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