pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub fn new() -> Self
Sourcepub fn new_with_base_url(base_url: String) -> Self
pub fn new_with_base_url(base_url: String) -> Self
Create a new client using a given base URL and a default timeout. The library will use absoluate paths based on this base_url.
Sourcepub fn new_with_timeout(base_url: String, version: u8, timeout: u64) -> Self
pub fn new_with_timeout(base_url: String, version: u8, timeout: u64) -> Self
Create a new client using a given base URL, and request timeout value. The library will use absoluate paths based on the given base_url.
pub fn new_with_version(base_url: String, version: u8) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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