Struct stud_ip_scraper::StudIpClient
source ยท pub struct StudIpClient {
pub client: Client,
pub host: &'static str,
/* private fields */
}
Expand description
A wrapped reqwest Client
, that automatically replaces the host of every request
Fieldsยง
ยงclient: Client
ยงhost: &'static str
Implementationsยง
sourceยงimpl StudIpClient
impl StudIpClient
pub fn get(&self, url: impl IntoUrl) -> RequestBuilder
pub fn post(&self, url: impl IntoUrl) -> RequestBuilder
pub fn put(&self, url: impl IntoUrl) -> RequestBuilder
pub fn patch(&self, url: impl IntoUrl) -> RequestBuilder
pub fn delete(&self, url: impl IntoUrl) -> RequestBuilder
pub fn head(&self, url: impl IntoUrl) -> RequestBuilder
Trait Implementationsยง
sourceยงimpl Debug for StudIpClient
impl Debug for StudIpClient
Auto Trait Implementationsยง
impl !RefUnwindSafe for StudIpClient
impl Send for StudIpClient
impl !Sync for StudIpClient
impl Unpin for StudIpClient
impl !UnwindSafe for StudIpClient
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