pub struct ErrorContext {
pub platform: Option<PlatformContext>,
pub http: Option<HttpErrorContext>,
pub retry: Option<RetryInfo>,
pub metadata: HashMap<String, String>,
pub timestamp: DateTime<Utc>,
}
Expand description
Enhanced error context
Fields§
§platform: Option<PlatformContext>
Platform-specific context
http: Option<HttpErrorContext>
HTTP error details
retry: Option<RetryInfo>
Retry information
metadata: HashMap<String, String>
Additional metadata
timestamp: DateTime<Utc>
Error timestamp
Trait Implementations§
Source§impl Clone for ErrorContext
impl Clone for ErrorContext
Source§fn clone(&self) -> ErrorContext
fn clone(&self) -> ErrorContext
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 ErrorContext
impl Debug for ErrorContext
Auto Trait Implementations§
impl Freeze for ErrorContext
impl RefUnwindSafe for ErrorContext
impl Send for ErrorContext
impl Sync for ErrorContext
impl Unpin for ErrorContext
impl UnwindSafe for ErrorContext
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