#[non_exhaustive]pub enum StepKind {
Action {
action: String,
locator: Option<SelectorText>,
resolved: Option<String>,
point: Option<Point>,
input: Option<String>,
},
Expect {
subject: SelectorText,
assertion: String,
negated: bool,
},
Advance {
by: VirtualDuration,
},
Task {
name: String,
control: String,
},
Window {
window: WindowOrdinal,
change: String,
},
}Expand description
What the test asked for in a step. Action, assertion, task control and window change kinds are stored by name.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Action
An action on a widget, or on a point.
Fields
§
locator: Option<SelectorText>The locator acted on.
Expect
An expect, with every attempt in Step::attempts.
Fields
§
subject: SelectorTextThe locator under test.
Advance
An explicit advance of the virtual clock.
Fields
§
by: VirtualDurationHow far.
Task
Control of a named task.
Window
A change to a window, such as a resize.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StepKind
impl<'de> Deserialize<'de> for StepKind
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
impl StructuralPartialEq for StepKind
Auto Trait Implementations§
impl Forget for StepKind
impl Freeze for StepKind
impl Move for StepKind
impl RefUnwindSafe for StepKind
impl Send for StepKindwhere
RawVecInner: Send,
impl Sync for StepKindwhere
RawVecInner: Sync,
impl Unpin for StepKind
impl UnsafeUnpin for StepKind
impl UnwindSafe for StepKindwhere
RawVecInner: UnwindSafe,
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