pub struct TestClient {}Expand description
A test HTTP client. Will just print debug information
Trait Implementations§
Source§impl Clone for TestClient
impl Clone for TestClient
Source§fn clone(&self) -> TestClient
fn clone(&self) -> TestClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TestClient
Source§impl Debug for TestClient
impl Debug for TestClient
Source§impl Default for TestClient
impl Default for TestClient
Source§fn default() -> TestClient
fn default() -> TestClient
Returns the “default value” for a type. Read more
Source§impl HttpClient for TestClient
Implements a test HTTP client
Should just log request data at debug level
impl HttpClient for TestClient
Implements a test HTTP client Should just log request data at debug level
Source§type Error = String
type Error = String
Error type for a HTTP client Typically should be an enum of client errors
§Example
#[derive(Debug)]
pub enum ReqwestError {
Client(reqwest::Error),
StatusCode(reqwest::Response),
}Auto Trait Implementations§
impl Freeze for TestClient
impl RefUnwindSafe for TestClient
impl Send for TestClient
impl Sync for TestClient
impl Unpin for TestClient
impl UnsafeUnpin for TestClient
impl UnwindSafe for TestClient
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