pub struct MakeFetchCandlesOptions {
pub rate_limit: Option<(u64, Duration)>,
pub batch_limit: Option<usize>,
}Expand description
Options for making a service to fetch candles.
Fields§
§rate_limit: Option<(u64, Duration)>Rate limit.
batch_limit: Option<usize>Batch limit.
Trait Implementations§
Source§impl Debug for MakeFetchCandlesOptions
impl Debug for MakeFetchCandlesOptions
Source§impl Default for MakeFetchCandlesOptions
impl Default for MakeFetchCandlesOptions
Source§fn default() -> MakeFetchCandlesOptions
fn default() -> MakeFetchCandlesOptions
Returns the “default value” for a type. Read more
Source§impl<M> Service<MakeFetchCandlesOptions> for AsService<'_, M>where
M: MakeFetchCandles,
impl<M> Service<MakeFetchCandlesOptions> for AsService<'_, M>where
M: MakeFetchCandles,
Source§type Response = <M as MakeFetchCandles>::Service
type Response = <M as MakeFetchCandles>::Service
Responses given by the service.
Source§type Error = ExchangeError
type Error = ExchangeError
Errors produced by the service.
Source§type Future = <M as MakeFetchCandles>::Future
type Future = <M as MakeFetchCandles>::Future
The future response value.
Auto Trait Implementations§
impl Freeze for MakeFetchCandlesOptions
impl RefUnwindSafe for MakeFetchCandlesOptions
impl Send for MakeFetchCandlesOptions
impl Sync for MakeFetchCandlesOptions
impl Unpin for MakeFetchCandlesOptions
impl UnwindSafe for MakeFetchCandlesOptions
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