pub struct SnapshotSourceFrame {
pub index: usize,
pub message: String,
pub display: Option<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 diagnostics and snapshot assertions.
display: Option<String>Compatibility projection of formatted display output.
type_name: Option<String>Compatibility projection of best-effort runtime type name.
error_code: Option<i32>§reason: Option<String>§want: Option<String>§path: Option<String>§detail: Option<String>§metadata: ErrorMetadata§is_root_cause: boolImplementations§
Source§impl SnapshotSourceFrame
impl SnapshotSourceFrame
pub fn stable_export(&self) -> StableSnapshotSourceFrame
Trait Implementations§
Source§impl Clone for SnapshotSourceFrame
impl Clone for SnapshotSourceFrame
Source§fn clone(&self) -> SnapshotSourceFrame
fn clone(&self) -> SnapshotSourceFrame
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 SnapshotSourceFrame
impl Debug for SnapshotSourceFrame
Source§impl From<&SnapshotSourceFrame> for StableSnapshotSourceFrame
impl From<&SnapshotSourceFrame> for StableSnapshotSourceFrame
Source§fn from(value: &SnapshotSourceFrame) -> Self
fn from(value: &SnapshotSourceFrame) -> Self
Converts to this type from the input type.
Source§impl From<&StableSnapshotSourceFrame> for SnapshotSourceFrame
impl From<&StableSnapshotSourceFrame> for SnapshotSourceFrame
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<SnapshotSourceFrame> for StableSnapshotSourceFrame
impl From<SnapshotSourceFrame> for StableSnapshotSourceFrame
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 SnapshotSourceFrame
impl From<StableSnapshotSourceFrame> for SnapshotSourceFrame
Source§fn from(value: StableSnapshotSourceFrame) -> Self
fn from(value: StableSnapshotSourceFrame) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SnapshotSourceFrame
impl PartialEq for SnapshotSourceFrame
impl StructuralPartialEq for SnapshotSourceFrame
Auto Trait Implementations§
impl Freeze for SnapshotSourceFrame
impl RefUnwindSafe for SnapshotSourceFrame
impl Send for SnapshotSourceFrame
impl Sync for SnapshotSourceFrame
impl Unpin for SnapshotSourceFrame
impl UnsafeUnpin for SnapshotSourceFrame
impl UnwindSafe for SnapshotSourceFrame
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