pub struct StructuredError {
pub kind: ErrorKind,
pub message: Option<String>,
pub location: SourceLocation,
pub context: Vec<StructuredContextFrame>,
pub trace: Vec<TraceEntry>,
pub payload: Option<StructuredPayload>,
}Expand description
The plain-data, owned, serializable mirror of TestError.
Fields§
§kind: ErrorKindThe failure category.
message: Option<String>What failed, when stated concisely.
location: SourceLocationWhere the failure originated.
context: Vec<StructuredContextFrame>The context chain, outermost first.
trace: Vec<TraceEntry>The in-test breadcrumbs active when the error was built, oldest first.
TraceEntry is already plain data, so it is its own structured form.
payload: Option<StructuredPayload>Structured detail, when applicable.
Trait Implementations§
Source§impl Clone for StructuredError
impl Clone for StructuredError
Source§fn clone(&self) -> StructuredError
fn clone(&self) -> StructuredError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StructuredError
impl Debug for StructuredError
Source§impl<'de> Deserialize<'de> for StructuredError
impl<'de> Deserialize<'de> for StructuredError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StructuredError
impl PartialEq for StructuredError
Source§fn eq(&self, other: &StructuredError) -> bool
fn eq(&self, other: &StructuredError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StructuredError
impl Serialize for StructuredError
impl Eq for StructuredError
impl StructuralPartialEq for StructuredError
Auto Trait Implementations§
impl Freeze for StructuredError
impl RefUnwindSafe for StructuredError
impl Send for StructuredError
impl Sync for StructuredError
impl Unpin for StructuredError
impl UnsafeUnpin for StructuredError
impl UnwindSafe for StructuredError
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