pub struct BaseApi;Trait Implementations§
Source§impl StockApi for BaseApi
impl StockApi for BaseApi
fn get_stock<'life0, 'life1, 'async_trait>(
&'life0 self,
_code: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Stock>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_stocks<'life0, 'life1, 'async_trait>(
&'life0 self,
_codes: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<Vec<Stock>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn search_stocks<'life0, 'life1, 'async_trait>(
&'life0 self,
_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<Stock>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
impl Copy for BaseApi
Auto Trait Implementations§
impl Freeze for BaseApi
impl RefUnwindSafe for BaseApi
impl Send for BaseApi
impl Sync for BaseApi
impl Unpin for BaseApi
impl UnsafeUnpin for BaseApi
impl UnwindSafe for BaseApi
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