pub struct MarketClient<T: Publisher> {
pub site: T,
/* private fields */
}Expand description
MarketClient holds the Publisher and reqwest::Client
Fields§
§site: TImplementations§
Source§impl<T: Publisher> MarketClient<T>
impl<T: Publisher> MarketClient<T>
pub fn new(site: T) -> Self
Sourcepub async fn fetch(&self, request: T::Request) -> MarketResult<MarketSeries>
pub async fn fetch(&self, request: T::Request) -> MarketResult<MarketSeries>
Fetches the data for a single request
Auto Trait Implementations§
impl<T> Freeze for MarketClient<T>where
T: Freeze,
impl<T> !RefUnwindSafe for MarketClient<T>
impl<T> Send for MarketClient<T>where
T: Send,
impl<T> Sync for MarketClient<T>where
T: Sync,
impl<T> Unpin for MarketClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for MarketClient<T>where
T: UnsafeUnpin,
impl<T> !UnwindSafe for MarketClient<T>
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