#[non_exhaustive]pub struct UnitExpectation {
pub kind: UnitKind,
pub words: Option<String>,
pub operation: Option<String>,
pub record: Option<String>,
pub arguments: BTreeMap<String, ArgumentExpectation>,
}Expand description
One unit of a message, and what the tasks after segmentation must make of it.
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.kind: UnitKindWhat kind of thing the user did in these words.
words: Option<String>The user’s words the unit covers, exactly as written.
operation: Option<String>The operation a request reaches.
record: Option<String>The record it aims at: a seeded case id, or new.
arguments: BTreeMap<String, ArgumentExpectation>Expected arguments, by name.
Trait Implementations§
Source§impl Clone for UnitExpectation
impl Clone for UnitExpectation
Source§impl Debug for UnitExpectation
impl Debug for UnitExpectation
Source§impl<'de> Deserialize<'de> for UnitExpectation
impl<'de> Deserialize<'de> for UnitExpectation
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 for UnitExpectation
impl PartialEq for UnitExpectation
Source§impl Serialize for UnitExpectation
impl Serialize for UnitExpectation
impl StructuralPartialEq for UnitExpectation
Auto Trait Implementations§
impl Freeze for UnitExpectation
impl RefUnwindSafe for UnitExpectation
impl Send for UnitExpectation
impl Sync for UnitExpectation
impl Unpin for UnitExpectation
impl UnsafeUnpin for UnitExpectation
impl UnwindSafe for UnitExpectation
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