pub struct InteractiveBrokersExecClientConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> InteractiveBrokersExecClientConfigBuilder<S>
impl<S: State> InteractiveBrokersExecClientConfigBuilder<S>
Sourcepub fn build(self) -> InteractiveBrokersExecClientConfigwhere
S: IsComplete,
pub fn build(self) -> InteractiveBrokersExecClientConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn host(
self,
value: String,
) -> InteractiveBrokersExecClientConfigBuilder<SetHost<S>>where
S::Host: IsUnset,
pub fn host(
self,
value: String,
) -> InteractiveBrokersExecClientConfigBuilder<SetHost<S>>where
S::Host: IsUnset,
Sourcepub fn maybe_host(
self,
value: Option<String>,
) -> InteractiveBrokersExecClientConfigBuilder<SetHost<S>>where
S::Host: IsUnset,
pub fn maybe_host(
self,
value: Option<String>,
) -> InteractiveBrokersExecClientConfigBuilder<SetHost<S>>where
S::Host: IsUnset,
Sourcepub fn port(
self,
value: u16,
) -> InteractiveBrokersExecClientConfigBuilder<SetPort<S>>where
S::Port: IsUnset,
pub fn port(
self,
value: u16,
) -> InteractiveBrokersExecClientConfigBuilder<SetPort<S>>where
S::Port: IsUnset,
Sourcepub fn maybe_port(
self,
value: Option<u16>,
) -> InteractiveBrokersExecClientConfigBuilder<SetPort<S>>where
S::Port: IsUnset,
pub fn maybe_port(
self,
value: Option<u16>,
) -> InteractiveBrokersExecClientConfigBuilder<SetPort<S>>where
S::Port: IsUnset,
Sourcepub fn client_id(
self,
value: i32,
) -> InteractiveBrokersExecClientConfigBuilder<SetClientId<S>>where
S::ClientId: IsUnset,
pub fn client_id(
self,
value: i32,
) -> InteractiveBrokersExecClientConfigBuilder<SetClientId<S>>where
S::ClientId: IsUnset,
Sourcepub fn maybe_client_id(
self,
value: Option<i32>,
) -> InteractiveBrokersExecClientConfigBuilder<SetClientId<S>>where
S::ClientId: IsUnset,
pub fn maybe_client_id(
self,
value: Option<i32>,
) -> InteractiveBrokersExecClientConfigBuilder<SetClientId<S>>where
S::ClientId: IsUnset,
Sourcepub fn account_id(
self,
value: String,
) -> InteractiveBrokersExecClientConfigBuilder<SetAccountId<S>>where
S::AccountId: IsUnset,
pub fn account_id(
self,
value: String,
) -> InteractiveBrokersExecClientConfigBuilder<SetAccountId<S>>where
S::AccountId: IsUnset,
Sourcepub fn maybe_account_id(
self,
value: Option<String>,
) -> InteractiveBrokersExecClientConfigBuilder<SetAccountId<S>>where
S::AccountId: IsUnset,
pub fn maybe_account_id(
self,
value: Option<String>,
) -> InteractiveBrokersExecClientConfigBuilder<SetAccountId<S>>where
S::AccountId: IsUnset,
Sourcepub fn connection_timeout(
self,
value: u64,
) -> InteractiveBrokersExecClientConfigBuilder<SetConnectionTimeout<S>>where
S::ConnectionTimeout: IsUnset,
pub fn connection_timeout(
self,
value: u64,
) -> InteractiveBrokersExecClientConfigBuilder<SetConnectionTimeout<S>>where
S::ConnectionTimeout: IsUnset,
Sourcepub fn maybe_connection_timeout(
self,
value: Option<u64>,
) -> InteractiveBrokersExecClientConfigBuilder<SetConnectionTimeout<S>>where
S::ConnectionTimeout: IsUnset,
pub fn maybe_connection_timeout(
self,
value: Option<u64>,
) -> InteractiveBrokersExecClientConfigBuilder<SetConnectionTimeout<S>>where
S::ConnectionTimeout: IsUnset,
Sourcepub fn request_timeout(
self,
value: u64,
) -> InteractiveBrokersExecClientConfigBuilder<SetRequestTimeout<S>>where
S::RequestTimeout: IsUnset,
pub fn request_timeout(
self,
value: u64,
) -> InteractiveBrokersExecClientConfigBuilder<SetRequestTimeout<S>>where
S::RequestTimeout: IsUnset,
Sourcepub fn maybe_request_timeout(
self,
value: Option<u64>,
) -> InteractiveBrokersExecClientConfigBuilder<SetRequestTimeout<S>>where
S::RequestTimeout: IsUnset,
pub fn maybe_request_timeout(
self,
value: Option<u64>,
) -> InteractiveBrokersExecClientConfigBuilder<SetRequestTimeout<S>>where
S::RequestTimeout: IsUnset,
Sourcepub fn fetch_all_open_orders(
self,
value: bool,
) -> InteractiveBrokersExecClientConfigBuilder<SetFetchAllOpenOrders<S>>where
S::FetchAllOpenOrders: IsUnset,
pub fn fetch_all_open_orders(
self,
value: bool,
) -> InteractiveBrokersExecClientConfigBuilder<SetFetchAllOpenOrders<S>>where
S::FetchAllOpenOrders: IsUnset,
Sourcepub fn maybe_fetch_all_open_orders(
self,
value: Option<bool>,
) -> InteractiveBrokersExecClientConfigBuilder<SetFetchAllOpenOrders<S>>where
S::FetchAllOpenOrders: IsUnset,
pub fn maybe_fetch_all_open_orders(
self,
value: Option<bool>,
) -> InteractiveBrokersExecClientConfigBuilder<SetFetchAllOpenOrders<S>>where
S::FetchAllOpenOrders: IsUnset,
Sourcepub fn track_option_exercise_from_position_update(
self,
value: bool,
) -> InteractiveBrokersExecClientConfigBuilder<SetTrackOptionExerciseFromPositionUpdate<S>>where
S::TrackOptionExerciseFromPositionUpdate: IsUnset,
pub fn track_option_exercise_from_position_update(
self,
value: bool,
) -> InteractiveBrokersExecClientConfigBuilder<SetTrackOptionExerciseFromPositionUpdate<S>>where
S::TrackOptionExerciseFromPositionUpdate: IsUnset,
Sourcepub fn maybe_track_option_exercise_from_position_update(
self,
value: Option<bool>,
) -> InteractiveBrokersExecClientConfigBuilder<SetTrackOptionExerciseFromPositionUpdate<S>>where
S::TrackOptionExerciseFromPositionUpdate: IsUnset,
pub fn maybe_track_option_exercise_from_position_update(
self,
value: Option<bool>,
) -> InteractiveBrokersExecClientConfigBuilder<SetTrackOptionExerciseFromPositionUpdate<S>>where
S::TrackOptionExerciseFromPositionUpdate: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for InteractiveBrokersExecClientConfigBuilder<S>
impl<S> RefUnwindSafe for InteractiveBrokersExecClientConfigBuilder<S>
impl<S> Send for InteractiveBrokersExecClientConfigBuilder<S>
impl<S> Sync for InteractiveBrokersExecClientConfigBuilder<S>
impl<S> Unpin for InteractiveBrokersExecClientConfigBuilder<S>
impl<S> UnsafeUnpin for InteractiveBrokersExecClientConfigBuilder<S>
impl<S> UnwindSafe for InteractiveBrokersExecClientConfigBuilder<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