pub struct SourceFrame {
pub index: usize,
pub message: SmolStr,
pub display: Option<SmolStr>,
pub debug: Option<SmolStr>,
pub type_name: Option<SmolStr>,
pub error_code: Option<i32>,
pub reason: Option<SmolStr>,
pub path: Option<SmolStr>,
pub detail: Option<SmolStr>,
pub context_fields: Vec<(SmolStr, SmolStr)>,
pub metadata: ErrorMetadata,
pub is_root_cause: bool,
}Fields§
§index: usize§message: SmolStr§display: Option<SmolStr>§debug: Option<SmolStr>§type_name: Option<SmolStr>§error_code: Option<i32>§reason: Option<SmolStr>§path: Option<SmolStr>§detail: Option<SmolStr>§context_fields: Vec<(SmolStr, SmolStr)>Context key-value fields (from with_field / record_field).
Serialization: skipped via #[serde(skip)]. Context fields are
runtime-only metadata and should not be serialized as machine metadata.
metadata: ErrorMetadata§is_root_cause: boolTrait Implementations§
Source§impl Clone for SourceFrame
impl Clone for SourceFrame
Source§fn clone(&self) -> SourceFrame
fn clone(&self) -> SourceFrame
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 SourceFrame
impl Debug for SourceFrame
Source§impl PartialEq for SourceFrame
impl PartialEq for SourceFrame
impl Eq for SourceFrame
impl StructuralPartialEq for SourceFrame
Auto Trait Implementations§
impl Freeze for SourceFrame
impl RefUnwindSafe for SourceFrame
impl Send for SourceFrame
impl Sync for SourceFrame
impl Unpin for SourceFrame
impl UnsafeUnpin for SourceFrame
impl UnwindSafe for SourceFrame
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