pub struct ErrorRecord {
pub error_type: String,
pub message: String,
pub status: Option<u16>,
pub endpoint: Option<String>,
pub stack_trace: Option<String>,
pub timestamp: DateTime<Utc>,
pub context: HashMap<String, String>,
}Expand description
Record of an error for analytics
Fields§
§error_type: StringError type/code
message: StringError message
status: Option<u16>HTTP status code
endpoint: Option<String>Endpoint where error occurred
stack_trace: Option<String>Stack trace (if available)
timestamp: DateTime<Utc>Timestamp
context: HashMap<String, String>Additional context
Implementations§
Source§impl ErrorRecord
impl ErrorRecord
Trait Implementations§
Source§impl Clone for ErrorRecord
impl Clone for ErrorRecord
Source§fn clone(&self) -> ErrorRecord
fn clone(&self) -> ErrorRecord
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 moreAuto Trait Implementations§
impl Freeze for ErrorRecord
impl RefUnwindSafe for ErrorRecord
impl Send for ErrorRecord
impl Sync for ErrorRecord
impl Unpin for ErrorRecord
impl UnsafeUnpin for ErrorRecord
impl UnwindSafe for ErrorRecord
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<R, D> DepsPresent<D> for R
Source§impl<T> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging