pub struct TestResult {
pub name: String,
pub passed: bool,
pub snap_data: Option<Vec<u8>>,
}
Fields§
§name: String
test case name
passed: bool
true if the test case passed
snap_data: Option<Vec<u8>>
(optional) more detailed results, if available. data is snap-compressed json failed tests should have a firsts-level key called “error”.
Trait Implementations§
Source§impl Clone for TestResult
impl Clone for TestResult
Source§fn clone(&self) -> TestResult
fn clone(&self) -> TestResult
Returns a copy 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 TestResult
impl Debug for TestResult
Source§impl Default for TestResult
impl Default for TestResult
Source§fn default() -> TestResult
fn default() -> TestResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TestResult
impl<'de> Deserialize<'de> for TestResult
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<'name, T: Serialize> From<(&'name str, Result<T, RpcError>)> for TestResult
impl<'name, T: Serialize> From<(&'name str, Result<T, RpcError>)> for TestResult
Source§fn from(name_res: NamedResult<'name, T>) -> TestResult
fn from(name_res: NamedResult<'name, T>) -> TestResult
Converts to this type from the input type.
Source§impl PartialEq for TestResult
impl PartialEq for TestResult
Source§impl Serialize for TestResult
impl Serialize for TestResult
impl Eq for TestResult
impl StructuralPartialEq for TestResult
Auto Trait Implementations§
impl Freeze for TestResult
impl RefUnwindSafe for TestResult
impl Send for TestResult
impl Sync for TestResult
impl Unpin for TestResult
impl UnwindSafe for TestResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.