pub struct ContextAnalysis {
pub total_contexts: usize,
pub context_depth: usize,
pub has_suggestions: bool,
pub has_location_info: bool,
pub metadata_entries: usize,
pub typed_payloads: usize,
pub primary_context_priority: u8,
}Expand description
Detailed context analysis results
Fields§
§total_contexts: usizeTotal number of context objects attached to the error
context_depth: usizeMaximum depth of nested context information
has_suggestions: boolWhether the error includes user-facing suggestions
has_location_info: boolWhether source code location information is available
metadata_entries: usizeNumber of metadata key-value pairs attached
typed_payloads: usizeNumber of typed shell objects attached
primary_context_priority: u8Priority level of the primary context (0-255)
Trait Implementations§
Source§impl Debug for ContextAnalysis
impl Debug for ContextAnalysis
Source§impl Default for ContextAnalysis
impl Default for ContextAnalysis
Source§fn default() -> ContextAnalysis
fn default() -> ContextAnalysis
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContextAnalysis
impl RefUnwindSafe for ContextAnalysis
impl Send for ContextAnalysis
impl Sync for ContextAnalysis
impl Unpin for ContextAnalysis
impl UnwindSafe for ContextAnalysis
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