pub struct HttpRequest {
pub client: Client,
pub url: String,
}
Expand description
A Reporter
that sends the data to the specified URL.
Fields§
§client: Client
HTTP client.
url: String
The URL to send the request to.
Implementations§
Source§impl HttpRequest
impl HttpRequest
Sourcepub fn from_url(url: impl Into<String>) -> Self
pub fn from_url(url: impl Into<String>) -> Self
Create a new HttpRequest
reporter from a url.
Trait Implementations§
Source§impl Reporter for HttpRequest
impl Reporter for HttpRequest
Auto Trait Implementations§
impl Freeze for HttpRequest
impl !RefUnwindSafe for HttpRequest
impl Send for HttpRequest
impl Sync for HttpRequest
impl Unpin for HttpRequest
impl !UnwindSafe for HttpRequest
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