pub struct MarketServiceImpl<T: IgHttpClient> { /* private fields */ }Expand description
Implementation of the market service
Implementations§
Source§impl<T: IgHttpClient> MarketServiceImpl<T>
impl<T: IgHttpClient> MarketServiceImpl<T>
Trait Implementations§
Source§impl<T: IgHttpClient + 'static> MarketService for MarketServiceImpl<T>
impl<T: IgHttpClient + 'static> MarketService for MarketServiceImpl<T>
Source§fn search_markets<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session: &'life1 IgSession,
search_term: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<MarketSearchResult, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn search_markets<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session: &'life1 IgSession,
search_term: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<MarketSearchResult, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Searches markets by search term
Source§fn get_market_details<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session: &'life1 IgSession,
epic: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<MarketDetails, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_market_details<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session: &'life1 IgSession,
epic: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<MarketDetails, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Gets details of a specific market by its EPIC
Source§fn get_multiple_market_details<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session: &'life1 IgSession,
epics: &'life2 [String],
) -> Pin<Box<dyn Future<Output = Result<Vec<MarketDetails>, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_multiple_market_details<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session: &'life1 IgSession,
epics: &'life2 [String],
) -> Pin<Box<dyn Future<Output = Result<Vec<MarketDetails>, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Gets details of multiple markets by their EPICs in a single request Read more
Source§fn get_historical_prices<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
session: &'life1 IgSession,
epic: &'life2 str,
resolution: &'life3 str,
from: &'life4 str,
to: &'life5 str,
) -> Pin<Box<dyn Future<Output = Result<HistoricalPricesResponse, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
fn get_historical_prices<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
session: &'life1 IgSession,
epic: &'life2 str,
resolution: &'life3 str,
from: &'life4 str,
to: &'life5 str,
) -> Pin<Box<dyn Future<Output = Result<HistoricalPricesResponse, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
Gets historical prices for a market
Gets the top-level market navigation nodes Read more
Gets the market navigation node with the specified ID Read more
Auto Trait Implementations§
impl<T> Freeze for MarketServiceImpl<T>
impl<T> RefUnwindSafe for MarketServiceImpl<T>where
T: RefUnwindSafe,
impl<T> Send for MarketServiceImpl<T>
impl<T> Sync for MarketServiceImpl<T>
impl<T> Unpin for MarketServiceImpl<T>
impl<T> UnwindSafe for MarketServiceImpl<T>where
T: RefUnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more