Struct helium_api::Client
source · [−]pub struct Client { /* private fields */ }
Implementations
sourceimpl Client
impl Client
sourcepub fn new_with_base_url(base_url: String, user_agent: &str) -> Self
pub fn new_with_base_url(base_url: String, user_agent: &str) -> 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, user_agent: &str, timeout: u64) -> Self
pub fn new_with_timeout(base_url: String, user_agent: &str, 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.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more