#[non_exhaustive]pub struct TestCaseError {
pub test_case: Option<TestCase>,
pub status: Option<Status>,
/* private fields */
}Available on crate feature
test-cases only.Expand description
Error info for importing 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: Option<TestCase>The test case.
status: Option<Status>The status associated with the test case.
Implementations§
Source§impl TestCaseError
impl TestCaseError
Sourcepub fn set_test_case<T>(self, v: T) -> Self
pub fn set_test_case<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_test_case<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_test_case<T>(self, v: Option<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
Trait Implementations§
Source§impl Clone for TestCaseError
impl Clone for TestCaseError
Source§fn clone(&self) -> TestCaseError
fn clone(&self) -> TestCaseError
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 TestCaseError
impl Debug for TestCaseError
Source§impl Default for TestCaseError
impl Default for TestCaseError
Source§fn default() -> TestCaseError
fn default() -> TestCaseError
Returns the “default value” for a type. Read more
Source§impl Message for TestCaseError
impl Message for TestCaseError
Source§impl PartialEq for TestCaseError
impl PartialEq for TestCaseError
Source§fn eq(&self, other: &TestCaseError) -> bool
fn eq(&self, other: &TestCaseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TestCaseError
Auto Trait Implementations§
impl Freeze for TestCaseError
impl RefUnwindSafe for TestCaseError
impl Send for TestCaseError
impl Sync for TestCaseError
impl Unpin for TestCaseError
impl UnsafeUnpin for TestCaseError
impl UnwindSafe for TestCaseError
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