Struct wasmcloud_interface_testing::TestResult
source · pub struct TestResult {
pub name: String,
pub passed: bool,
pub snap_data: Option<Vec<u8>>,
}Fields§
§name: Stringtest case name
passed: booltrue 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<TestResult> for TestResult
impl PartialEq<TestResult> for TestResult
source§fn eq(&self, other: &TestResult) -> bool
fn eq(&self, other: &TestResult) -> bool
This method tests for
self and other values to be equal, and is used
by ==.