#[non_exhaustive]pub struct TestError {
pub test_case: String,
pub status: Option<Status>,
pub test_time: Option<Timestamp>,
/* private fields */
}Available on crate features
environments or test-cases only.Expand description
Error info for running a test.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.test_case: StringThe test case resource name.
status: Option<Status>The status associated with the test.
test_time: Option<Timestamp>The timestamp when the test was completed.
Implementations§
Source§impl TestError
impl TestError
Sourcepub fn set_test_case<T: Into<String>>(self, v: T) -> Self
pub fn set_test_case<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_status<T>(self, v: T) -> Self
pub fn set_status<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
Sourcepub fn set_test_time<T>(self, v: T) -> Self
pub fn set_test_time<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_test_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_test_time<T>(self, v: Option<T>) -> Self
Trait Implementations§
impl StructuralPartialEq for TestError
Auto Trait Implementations§
impl Freeze for TestError
impl RefUnwindSafe for TestError
impl Send for TestError
impl Sync for TestError
impl Unpin for TestError
impl UnsafeUnpin for TestError
impl UnwindSafe for TestError
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