Struct wick_config::v1::TestDefinition
source · pub struct TestDefinition {
pub name: Option<String>,
pub operation: String,
pub inherent: Option<InherentData>,
pub with: Option<HashMap<String, LiquidJsonValue>>,
pub inputs: Vec<PacketData>,
pub outputs: Vec<TestPacketData>,
}Expand description
A test case for a component’s operation.
Fields§
§name: Option<String>The name of the test.
operation: StringThe operaton to test.
inherent: Option<InherentData>Inherent data to use for the test.
with: Option<HashMap<String, LiquidJsonValue>>The configuration for the operation, if any.
inputs: Vec<PacketData>The inputs to the test.
outputs: Vec<TestPacketData>The expected outputs of the operation.
Trait Implementations§
source§impl Clone for TestDefinition
impl Clone for TestDefinition
source§fn clone(&self) -> TestDefinition
fn clone(&self) -> TestDefinition
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 TestDefinition
impl Debug for TestDefinition
source§impl<'de> Deserialize<'de> for TestDefinition
impl<'de> Deserialize<'de> for TestDefinition
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<TestDefinition> for TestDefinition
impl PartialEq<TestDefinition> for TestDefinition
source§fn eq(&self, other: &TestDefinition) -> bool
fn eq(&self, other: &TestDefinition) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for TestDefinition
impl Serialize for TestDefinition
source§impl TryFrom<TestCase> for TestDefinition
impl TryFrom<TestCase> for TestDefinition
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§impl TryFrom<TestDefinition> for TestCase
impl TryFrom<TestDefinition> for TestCase
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§fn try_from(value: TestDefinition) -> Result<Self, ManifestError>
fn try_from(value: TestDefinition) -> Result<Self, ManifestError>
Performs the conversion.
impl StructuralPartialEq for TestDefinition
Auto Trait Implementations§
impl RefUnwindSafe for TestDefinition
impl Send for TestDefinition
impl Sync for TestDefinition
impl Unpin for TestDefinition
impl UnwindSafe for TestDefinition
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