pub struct ErrorLogEntry {
pub timestamp: String,
pub error_type: String,
pub message: String,
pub tool_id: Option<String>,
pub server_id: Option<String>,
pub parameters: Option<String>,
pub stack_trace: Option<String>,
pub is_recoverable: bool,
pub retry_count: Option<u32>,
}Expand description
Structured error log entry for comprehensive error logging
Fields§
§timestamp: String§error_type: String§message: String§tool_id: Option<String>§server_id: Option<String>§parameters: Option<String>§stack_trace: Option<String>§is_recoverable: bool§retry_count: Option<u32>Implementations§
Source§impl ErrorLogEntry
impl ErrorLogEntry
Sourcepub fn with_tool_id(self, tool_id: String) -> Self
pub fn with_tool_id(self, tool_id: String) -> Self
Sets the tool ID
Sourcepub fn with_server_id(self, server_id: String) -> Self
pub fn with_server_id(self, server_id: String) -> Self
Sets the server ID
Sourcepub fn with_parameters(self, parameters: String) -> Self
pub fn with_parameters(self, parameters: String) -> Self
Sets the parameters
Sourcepub fn with_stack_trace(self, stack_trace: String) -> Self
pub fn with_stack_trace(self, stack_trace: String) -> Self
Sets the stack trace
Sourcepub fn with_recoverable(self, recoverable: bool) -> Self
pub fn with_recoverable(self, recoverable: bool) -> Self
Sets whether the error is recoverable
Sourcepub fn with_retry_count(self, count: u32) -> Self
pub fn with_retry_count(self, count: u32) -> Self
Sets the retry count
Trait Implementations§
Source§impl Clone for ErrorLogEntry
impl Clone for ErrorLogEntry
Source§fn clone(&self) -> ErrorLogEntry
fn clone(&self) -> ErrorLogEntry
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 ErrorLogEntry
impl Debug for ErrorLogEntry
Source§impl<'de> Deserialize<'de> for ErrorLogEntry
impl<'de> Deserialize<'de> for ErrorLogEntry
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
Auto Trait Implementations§
impl Freeze for ErrorLogEntry
impl RefUnwindSafe for ErrorLogEntry
impl Send for ErrorLogEntry
impl Sync for ErrorLogEntry
impl Unpin for ErrorLogEntry
impl UnwindSafe for ErrorLogEntry
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