pub struct MockEndpointHttpClient<'a> {
pub response: HashMap<&'a str, Result<String, ProgramExit>>,
}Expand description
Http client implementation to mock a response.
Fields§
§response: HashMap<&'a str, 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<'a> Freeze for MockEndpointHttpClient<'a>
impl<'a> RefUnwindSafe for MockEndpointHttpClient<'a>
impl<'a> Send for MockEndpointHttpClient<'a>
impl<'a> Sync for MockEndpointHttpClient<'a>
impl<'a> Unpin for MockEndpointHttpClient<'a>
impl<'a> UnwindSafe for MockEndpointHttpClient<'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