pub struct MockPlan<'a> {
pub rules: Option<&'a Value>,
}Expand description
What the provider should do about mocking for one respond call: the
compiled ruleset to enforce (if any) and that the observation channel is on.
Absent entirely (the runner passes None) when the case declares nothing.
Fields§
§rules: Option<&'a Value>The compiled oneharness ruleset; None for a spy-only run.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MockPlan<'a>
impl<'a> RefUnwindSafe for MockPlan<'a>
impl<'a> Send for MockPlan<'a>
impl<'a> Sync for MockPlan<'a>
impl<'a> Unpin for MockPlan<'a>
impl<'a> UnsafeUnpin for MockPlan<'a>
impl<'a> UnwindSafe for MockPlan<'a>
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