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