pub struct SourceFrame {
pub index: usize,
pub message: String,
pub display: Option<String>,
pub debug: String,
pub type_name: Option<String>,
pub error_code: Option<i32>,
pub reason: Option<String>,
pub want: Option<String>,
pub path: Option<String>,
pub detail: Option<String>,
pub metadata: ErrorMetadata,
pub is_root_cause: bool,
}Fields§
§index: usize§message: StringStable human-facing summary. For StructError sources this is the reason text,
not the full multi-line display output.
display: Option<String>§debug: StringRaw Debug output for local diagnostics. Do not send this to production logs
without redaction; it may include internal fields or sensitive values.
type_name: Option<String>Best-effort type name. Rust does not expose concrete type names for every
dyn Error frame, so this is not a complete classification key.
error_code: Option<i32>§reason: Option<String>§want: Option<String>§path: Option<String>§detail: Option<String>§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 From<&StableSnapshotSourceFrame> for SourceFrame
impl From<&StableSnapshotSourceFrame> for SourceFrame
Source§fn from(value: &StableSnapshotSourceFrame) -> Self
fn from(value: &StableSnapshotSourceFrame) -> Self
Converts to this type from the input type.
Source§impl From<SnapshotSourceFrame> for SourceFrame
impl From<SnapshotSourceFrame> for SourceFrame
Source§fn from(value: SnapshotSourceFrame) -> Self
fn from(value: SnapshotSourceFrame) -> Self
Converts to this type from the input type.
Source§impl From<SourceFrame> for SnapshotSourceFrame
impl From<SourceFrame> for SnapshotSourceFrame
Source§fn from(value: SourceFrame) -> Self
fn from(value: SourceFrame) -> Self
Converts to this type from the input type.
Source§impl From<StableSnapshotSourceFrame> for SourceFrame
impl From<StableSnapshotSourceFrame> for SourceFrame
Source§fn from(value: StableSnapshotSourceFrame) -> Self
fn from(value: StableSnapshotSourceFrame) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SourceFrame
impl PartialEq 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