pub struct TestStep {
pub message: MockMessage,
pub expected_state: String,
pub description: Option<String>,
}Expand description
A single test step with expected state
Fields§
§message: MockMessageMessage to send
expected_state: StringExpected state after processing
description: Option<String>Optional description
Implementations§
Source§impl TestStep
impl TestStep
Sourcepub fn new(message: MockMessage, expected_state: &str) -> Self
pub fn new(message: MockMessage, expected_state: &str) -> Self
Create a new test step
Sourcepub fn with_description(self, desc: &str) -> Self
pub fn with_description(self, desc: &str) -> Self
Add a description to this step
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestStep
impl RefUnwindSafe for TestStep
impl Send for TestStep
impl Sync for TestStep
impl Unpin for TestStep
impl UnsafeUnpin for TestStep
impl UnwindSafe for TestStep
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more