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 duplicate 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 Freeze for AsyncMarketstack
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