Struct wick_config::v1::PacketAssertionDef
source · pub struct PacketAssertionDef {
pub name: String,
pub assertions: Vec<PacketAssertion>,
}Expand description
A test case for a component’s operation that uses loose equality for comparing data.
Fields§
§name: StringThe name of the input or output this packet is going to or coming from.
assertions: Vec<PacketAssertion>An assertion to test against the packet.
Trait Implementations§
source§impl Clone for PacketAssertionDef
impl Clone for PacketAssertionDef
source§fn clone(&self) -> PacketAssertionDef
fn clone(&self) -> PacketAssertionDef
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 PacketAssertionDef
impl Debug for PacketAssertionDef
source§impl<'de> Deserialize<'de> for PacketAssertionDef
impl<'de> Deserialize<'de> for PacketAssertionDef
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<PacketAssertionDef> for PacketAssertionDef
impl PartialEq<PacketAssertionDef> for PacketAssertionDef
source§fn eq(&self, other: &PacketAssertionDef) -> bool
fn eq(&self, other: &PacketAssertionDef) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for PacketAssertionDef
impl Serialize for PacketAssertionDef
source§impl TryFrom<PacketAssertionDef> for PacketAssertionDef
impl TryFrom<PacketAssertionDef> for PacketAssertionDef
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§fn try_from(value: PacketAssertionDef) -> Result<Self, ManifestError>
fn try_from(value: PacketAssertionDef) -> Result<Self, ManifestError>
Performs the conversion.
source§impl TryFrom<PacketAssertionDef> for PacketAssertionDef
impl TryFrom<PacketAssertionDef> for PacketAssertionDef
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§fn try_from(value: PacketAssertionDef) -> Result<Self, ManifestError>
fn try_from(value: PacketAssertionDef) -> Result<Self, ManifestError>
Performs the conversion.
impl StructuralPartialEq for PacketAssertionDef
Auto Trait Implementations§
impl RefUnwindSafe for PacketAssertionDef
impl Send for PacketAssertionDef
impl Sync for PacketAssertionDef
impl Unpin for PacketAssertionDef
impl UnwindSafe for PacketAssertionDef
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