enum Expectation<T: ActorEntity> {
Get {
id: T::Id,
response: Result<Option<T>, FrameworkError>,
},
Create {
response: Result<T::Id, FrameworkError>,
},
Update {
id: T::Id,
response: Result<T, FrameworkError>,
},
Delete {
id: T::Id,
response: Result<(), FrameworkError>,
},
Action {
id: T::Id,
response: Result<T::ActionResult, FrameworkError>,
},
}Expand description
Represents an expected request to the mock client.
This enum is used internally by MockClient to track what requests
are expected and what responses should be returned.
Variants§
Auto Trait Implementations§
impl<T> Freeze for Expectation<T>
impl<T> !RefUnwindSafe for Expectation<T>
impl<T> Send for Expectation<T>
impl<T> Sync for Expectation<T>
impl<T> Unpin for Expectation<T>
impl<T> !UnwindSafe for Expectation<T>
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