pub struct InteractiveBrokersInstrumentProviderConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> InteractiveBrokersInstrumentProviderConfigBuilder<S>
impl<S: State> InteractiveBrokersInstrumentProviderConfigBuilder<S>
Sourcepub fn build(self) -> InteractiveBrokersInstrumentProviderConfigwhere
S: IsComplete,
pub fn build(self) -> InteractiveBrokersInstrumentProviderConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn symbology_method(
self,
value: SymbologyMethod,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetSymbologyMethod<S>>where
S::SymbologyMethod: IsUnset,
pub fn symbology_method(
self,
value: SymbologyMethod,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetSymbologyMethod<S>>where
S::SymbologyMethod: IsUnset,
Sourcepub fn maybe_symbology_method(
self,
value: Option<SymbologyMethod>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetSymbologyMethod<S>>where
S::SymbologyMethod: IsUnset,
pub fn maybe_symbology_method(
self,
value: Option<SymbologyMethod>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetSymbologyMethod<S>>where
S::SymbologyMethod: IsUnset,
Sourcepub fn load_ids(
self,
value: HashSet<InstrumentId>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetLoadIds<S>>where
S::LoadIds: IsUnset,
pub fn load_ids(
self,
value: HashSet<InstrumentId>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetLoadIds<S>>where
S::LoadIds: IsUnset,
Sourcepub fn maybe_load_ids(
self,
value: Option<HashSet<InstrumentId>>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetLoadIds<S>>where
S::LoadIds: IsUnset,
pub fn maybe_load_ids(
self,
value: Option<HashSet<InstrumentId>>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetLoadIds<S>>where
S::LoadIds: IsUnset,
Sourcepub fn load_contracts(
self,
value: Vec<Value>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetLoadContracts<S>>where
S::LoadContracts: IsUnset,
pub fn load_contracts(
self,
value: Vec<Value>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetLoadContracts<S>>where
S::LoadContracts: IsUnset,
Sourcepub fn maybe_load_contracts(
self,
value: Option<Vec<Value>>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetLoadContracts<S>>where
S::LoadContracts: IsUnset,
pub fn maybe_load_contracts(
self,
value: Option<Vec<Value>>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetLoadContracts<S>>where
S::LoadContracts: IsUnset,
Sourcepub fn min_expiry_days(
self,
value: u32,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetMinExpiryDays<S>>where
S::MinExpiryDays: IsUnset,
pub fn min_expiry_days(
self,
value: u32,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetMinExpiryDays<S>>where
S::MinExpiryDays: IsUnset,
Sourcepub fn maybe_min_expiry_days(
self,
value: Option<u32>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetMinExpiryDays<S>>where
S::MinExpiryDays: IsUnset,
pub fn maybe_min_expiry_days(
self,
value: Option<u32>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetMinExpiryDays<S>>where
S::MinExpiryDays: IsUnset,
Sourcepub fn max_expiry_days(
self,
value: u32,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetMaxExpiryDays<S>>where
S::MaxExpiryDays: IsUnset,
pub fn max_expiry_days(
self,
value: u32,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetMaxExpiryDays<S>>where
S::MaxExpiryDays: IsUnset,
Sourcepub fn maybe_max_expiry_days(
self,
value: Option<u32>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetMaxExpiryDays<S>>where
S::MaxExpiryDays: IsUnset,
pub fn maybe_max_expiry_days(
self,
value: Option<u32>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetMaxExpiryDays<S>>where
S::MaxExpiryDays: IsUnset,
Sourcepub fn build_options_chain(
self,
value: bool,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetBuildOptionsChain<S>>where
S::BuildOptionsChain: IsUnset,
pub fn build_options_chain(
self,
value: bool,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetBuildOptionsChain<S>>where
S::BuildOptionsChain: IsUnset,
Sourcepub fn maybe_build_options_chain(
self,
value: Option<bool>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetBuildOptionsChain<S>>where
S::BuildOptionsChain: IsUnset,
pub fn maybe_build_options_chain(
self,
value: Option<bool>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetBuildOptionsChain<S>>where
S::BuildOptionsChain: IsUnset,
Sourcepub fn build_futures_chain(
self,
value: bool,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetBuildFuturesChain<S>>where
S::BuildFuturesChain: IsUnset,
pub fn build_futures_chain(
self,
value: bool,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetBuildFuturesChain<S>>where
S::BuildFuturesChain: IsUnset,
Sourcepub fn maybe_build_futures_chain(
self,
value: Option<bool>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetBuildFuturesChain<S>>where
S::BuildFuturesChain: IsUnset,
pub fn maybe_build_futures_chain(
self,
value: Option<bool>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetBuildFuturesChain<S>>where
S::BuildFuturesChain: IsUnset,
Sourcepub fn cache_validity_days(
self,
value: u32,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetCacheValidityDays<S>>where
S::CacheValidityDays: IsUnset,
pub fn cache_validity_days(
self,
value: u32,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetCacheValidityDays<S>>where
S::CacheValidityDays: IsUnset,
Sourcepub fn maybe_cache_validity_days(
self,
value: Option<u32>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetCacheValidityDays<S>>where
S::CacheValidityDays: IsUnset,
pub fn maybe_cache_validity_days(
self,
value: Option<u32>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetCacheValidityDays<S>>where
S::CacheValidityDays: IsUnset,
Sourcepub fn convert_exchange_to_mic_venue(
self,
value: bool,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetConvertExchangeToMicVenue<S>>where
S::ConvertExchangeToMicVenue: IsUnset,
pub fn convert_exchange_to_mic_venue(
self,
value: bool,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetConvertExchangeToMicVenue<S>>where
S::ConvertExchangeToMicVenue: IsUnset,
Sourcepub fn maybe_convert_exchange_to_mic_venue(
self,
value: Option<bool>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetConvertExchangeToMicVenue<S>>where
S::ConvertExchangeToMicVenue: IsUnset,
pub fn maybe_convert_exchange_to_mic_venue(
self,
value: Option<bool>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetConvertExchangeToMicVenue<S>>where
S::ConvertExchangeToMicVenue: IsUnset,
Sourcepub fn symbol_to_mic_venue(
self,
value: HashMap<String, String>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetSymbolToMicVenue<S>>where
S::SymbolToMicVenue: IsUnset,
pub fn symbol_to_mic_venue(
self,
value: HashMap<String, String>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetSymbolToMicVenue<S>>where
S::SymbolToMicVenue: IsUnset,
Sourcepub fn maybe_symbol_to_mic_venue(
self,
value: Option<HashMap<String, String>>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetSymbolToMicVenue<S>>where
S::SymbolToMicVenue: IsUnset,
pub fn maybe_symbol_to_mic_venue(
self,
value: Option<HashMap<String, String>>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetSymbolToMicVenue<S>>where
S::SymbolToMicVenue: IsUnset,
Sourcepub fn filter_sec_types(
self,
value: HashSet<String>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetFilterSecTypes<S>>where
S::FilterSecTypes: IsUnset,
pub fn filter_sec_types(
self,
value: HashSet<String>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetFilterSecTypes<S>>where
S::FilterSecTypes: IsUnset,
Sourcepub fn maybe_filter_sec_types(
self,
value: Option<HashSet<String>>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetFilterSecTypes<S>>where
S::FilterSecTypes: IsUnset,
pub fn maybe_filter_sec_types(
self,
value: Option<HashSet<String>>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetFilterSecTypes<S>>where
S::FilterSecTypes: IsUnset,
Sourcepub fn cache_path(
self,
value: String,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetCachePath<S>>where
S::CachePath: IsUnset,
pub fn cache_path(
self,
value: String,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetCachePath<S>>where
S::CachePath: IsUnset,
Sourcepub fn maybe_cache_path(
self,
value: Option<String>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetCachePath<S>>where
S::CachePath: IsUnset,
pub fn maybe_cache_path(
self,
value: Option<String>,
) -> InteractiveBrokersInstrumentProviderConfigBuilder<SetCachePath<S>>where
S::CachePath: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for InteractiveBrokersInstrumentProviderConfigBuilder<S>
impl<S> RefUnwindSafe for InteractiveBrokersInstrumentProviderConfigBuilder<S>
impl<S> Send for InteractiveBrokersInstrumentProviderConfigBuilder<S>
impl<S> Sync for InteractiveBrokersInstrumentProviderConfigBuilder<S>
impl<S> Unpin for InteractiveBrokersInstrumentProviderConfigBuilder<S>
impl<S> UnsafeUnpin for InteractiveBrokersInstrumentProviderConfigBuilder<S>
impl<S> UnwindSafe for InteractiveBrokersInstrumentProviderConfigBuilder<S>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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