pub struct StableErrorSnapshot {
pub schema_version: &'static str,
pub reason: String,
pub detail: Option<String>,
pub position: Option<String>,
pub want: Option<String>,
pub path: Option<String>,
pub category: ErrorCategory,
pub code: String,
pub context: Vec<StableSnapshotContextFrame>,
pub root_metadata: ErrorMetadata,
pub source_frames: Vec<StableSnapshotSourceFrame>,
}Fields§
§schema_version: &'static str§reason: String§detail: Option<String>§position: Option<String>§want: Option<String>§path: Option<String>§category: ErrorCategory§code: String§context: Vec<StableSnapshotContextFrame>§root_metadata: ErrorMetadata§source_frames: Vec<StableSnapshotSourceFrame>Implementations§
Source§impl StableErrorSnapshot
impl StableErrorSnapshot
pub fn report(&self) -> DiagnosticReport
pub fn into_report(self) -> DiagnosticReport
Trait Implementations§
Source§impl Clone for StableErrorSnapshot
impl Clone for StableErrorSnapshot
Source§fn clone(&self) -> StableErrorSnapshot
fn clone(&self) -> StableErrorSnapshot
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 StableErrorSnapshot
impl Debug for StableErrorSnapshot
Source§impl From<&ErrorSnapshot> for StableErrorSnapshot
impl From<&ErrorSnapshot> for StableErrorSnapshot
Source§fn from(value: &ErrorSnapshot) -> Self
fn from(value: &ErrorSnapshot) -> Self
Converts to this type from the input type.
Source§impl From<&StableErrorSnapshot> for DiagnosticReport
impl From<&StableErrorSnapshot> for DiagnosticReport
Source§fn from(value: &StableErrorSnapshot) -> Self
fn from(value: &StableErrorSnapshot) -> Self
Converts to this type from the input type.
Source§impl<T> From<&StructError<T>> for StableErrorSnapshotwhere
T: DomainReason + ErrorIdentityProvider,
impl<T> From<&StructError<T>> for StableErrorSnapshotwhere
T: DomainReason + ErrorIdentityProvider,
Source§fn from(value: &StructError<T>) -> Self
fn from(value: &StructError<T>) -> Self
Converts to this type from the input type.
Source§impl From<ErrorSnapshot> for StableErrorSnapshot
impl From<ErrorSnapshot> for StableErrorSnapshot
Source§fn from(value: ErrorSnapshot) -> Self
fn from(value: ErrorSnapshot) -> Self
Converts to this type from the input type.
Source§impl From<StableErrorSnapshot> for DiagnosticReport
impl From<StableErrorSnapshot> for DiagnosticReport
Source§fn from(value: StableErrorSnapshot) -> Self
fn from(value: StableErrorSnapshot) -> Self
Converts to this type from the input type.
Source§impl<T> From<StructError<T>> for StableErrorSnapshotwhere
T: DomainReason + ErrorIdentityProvider,
impl<T> From<StructError<T>> for StableErrorSnapshotwhere
T: DomainReason + ErrorIdentityProvider,
Source§fn from(value: StructError<T>) -> Self
fn from(value: StructError<T>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StableErrorSnapshot
impl PartialEq for StableErrorSnapshot
impl StructuralPartialEq for StableErrorSnapshot
Auto Trait Implementations§
impl Freeze for StableErrorSnapshot
impl RefUnwindSafe for StableErrorSnapshot
impl Send for StableErrorSnapshot
impl Sync for StableErrorSnapshot
impl Unpin for StableErrorSnapshot
impl UnsafeUnpin for StableErrorSnapshot
impl UnwindSafe for StableErrorSnapshot
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