pub struct ErrorRecord {
pub id: String,
pub error_type: String,
pub message: String,
pub context: String,
pub timestamp: String,
pub occurrence_count: usize,
pub solution: Option<String>,
pub resolved: bool,
pub tags: Vec<String>,
pub related_files: Vec<String>,
}Expand description
Error record for tracking and learning
Fields§
§id: StringUnique error identifier (hash of error type + message)
error_type: StringError type (MCP, Tool, Config, etc.)
message: StringError message
context: StringStack trace or context
timestamp: StringWhen the error occurred
occurrence_count: usizeHow many times this error has occurred
solution: Option<String>Proposed fix or workaround
resolved: boolWhether this error has been resolved
Tags for categorization (e.g., “mcp”, “initialization”, “kubernetes”)
Related files that triggered this error
Implementations§
Source§impl ErrorRecord
impl ErrorRecord
Sourcepub fn with_solution(self, solution: &str) -> Self
pub fn with_solution(self, solution: &str) -> Self
Set a solution
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 · 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 ErrorRecord
impl Debug for ErrorRecord
Source§impl<'de> Deserialize<'de> for ErrorRecord
impl<'de> Deserialize<'de> for ErrorRecord
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 Hash for ErrorRecord
impl Hash for ErrorRecord
Source§impl PartialEq for ErrorRecord
impl PartialEq for ErrorRecord
Source§impl Serialize for ErrorRecord
impl Serialize for ErrorRecord
impl Eq for ErrorRecord
impl StructuralPartialEq for ErrorRecord
Auto Trait Implementations§
impl Freeze for ErrorRecord
impl RefUnwindSafe for ErrorRecord
impl Send for ErrorRecord
impl Sync for ErrorRecord
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.