Struct marketstack::AsyncMarketstack
source · pub struct AsyncMarketstack { /* private fields */ }
Expand description
A represenation of the asynchronous Marketstack API.
Implementations§
source§impl AsyncMarketstack
impl AsyncMarketstack
sourcepub async fn new<H, T>(host: H, token: T) -> Result<Self, MarketstackError>
pub async fn new<H, T>(host: H, token: T) -> Result<Self, MarketstackError>
Create a new AyncMarketstack API representation.
The token
should be a valid personal access token.
Errors out if token
is invalid.
sourcepub async fn new_insecure<H, T>(
host: H,
token: T
) -> Result<Self, MarketstackError>
pub async fn new_insecure<H, T>( host: H, token: T ) -> Result<Self, MarketstackError>
Create a new non-SSL AsyncMarketstack API representation.
A token
will still be required for insecure access.
Trait Implementations§
source§impl AsyncClient for AsyncMarketstack
impl AsyncClient for AsyncMarketstack
source§impl Clone for AsyncMarketstack
impl Clone for AsyncMarketstack
source§fn clone(&self) -> AsyncMarketstack
fn clone(&self) -> AsyncMarketstack
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AsyncMarketstack
impl Debug for AsyncMarketstack
source§impl RestClient for AsyncMarketstack
impl RestClient for AsyncMarketstack
Auto Trait Implementations§
impl !RefUnwindSafe for AsyncMarketstack
impl Send for AsyncMarketstack
impl Sync for AsyncMarketstack
impl Unpin for AsyncMarketstack
impl !UnwindSafe for AsyncMarketstack
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