pub struct MockEndpointHttpClient {
pub response: HashMap<String, Result<String, ProgramExit>>,
}Expand description
Http client implementation to mock a response.
Fields§
§response: HashMap<String, Result<String, ProgramExit>>The mocked response to be returned when calling MockHttpClient::get
method.
Trait Implementations§
Source§impl HttpClient for MockEndpointHttpClient
impl HttpClient for MockEndpointHttpClient
Auto Trait Implementations§
impl Freeze for MockEndpointHttpClient
impl RefUnwindSafe for MockEndpointHttpClient
impl Send for MockEndpointHttpClient
impl Sync for MockEndpointHttpClient
impl Unpin for MockEndpointHttpClient
impl UnwindSafe for MockEndpointHttpClient
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