pub struct ContinuousFuturesBuilder<Symbol = Missing> { /* private fields */ }Expand description
Continuous futures contract builder with type states
Implementations§
Source§impl ContinuousFuturesBuilder<Symbol>
impl ContinuousFuturesBuilder<Symbol>
Sourcepub fn on_exchange(self, exchange: impl Into<Exchange>) -> Self
pub fn on_exchange(self, exchange: impl Into<Exchange>) -> Self
Route the continuous future to a specific exchange.
Sourcepub fn in_currency(self, currency: impl Into<Currency>) -> Self
pub fn in_currency(self, currency: impl Into<Currency>) -> Self
Quote the continuous future in a different currency.
Sourcepub fn multiplier(self, value: u32) -> Self
pub fn multiplier(self, value: u32) -> Self
Set a custom multiplier value for the continuous future.
Trait Implementations§
Source§impl<Symbol: Clone> Clone for ContinuousFuturesBuilder<Symbol>
impl<Symbol: Clone> Clone for ContinuousFuturesBuilder<Symbol>
Source§fn clone(&self) -> ContinuousFuturesBuilder<Symbol>
fn clone(&self) -> ContinuousFuturesBuilder<Symbol>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<Symbol> Freeze for ContinuousFuturesBuilder<Symbol>where
Symbol: Freeze,
impl<Symbol> RefUnwindSafe for ContinuousFuturesBuilder<Symbol>where
Symbol: RefUnwindSafe,
impl<Symbol> Send for ContinuousFuturesBuilder<Symbol>where
Symbol: Send,
impl<Symbol> Sync for ContinuousFuturesBuilder<Symbol>where
Symbol: Sync,
impl<Symbol> Unpin for ContinuousFuturesBuilder<Symbol>where
Symbol: Unpin,
impl<Symbol> UnsafeUnpin for ContinuousFuturesBuilder<Symbol>where
Symbol: UnsafeUnpin,
impl<Symbol> UnwindSafe for ContinuousFuturesBuilder<Symbol>where
Symbol: UnwindSafe,
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