pub struct BinanceInstrumentProviderConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> BinanceInstrumentProviderConfigBuilder<S>
impl<S: State> BinanceInstrumentProviderConfigBuilder<S>
Sourcepub fn build(self) -> BinanceInstrumentProviderConfigwhere
S: IsComplete,
pub fn build(self) -> BinanceInstrumentProviderConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn load_all(
self,
value: bool,
) -> BinanceInstrumentProviderConfigBuilder<SetLoadAll<S>>where
S::LoadAll: IsUnset,
pub fn load_all(
self,
value: bool,
) -> BinanceInstrumentProviderConfigBuilder<SetLoadAll<S>>where
S::LoadAll: IsUnset,
Sourcepub fn maybe_load_all(
self,
value: Option<bool>,
) -> BinanceInstrumentProviderConfigBuilder<SetLoadAll<S>>where
S::LoadAll: IsUnset,
pub fn maybe_load_all(
self,
value: Option<bool>,
) -> BinanceInstrumentProviderConfigBuilder<SetLoadAll<S>>where
S::LoadAll: IsUnset,
Sourcepub fn load_ids(
self,
value: Vec<String>,
) -> BinanceInstrumentProviderConfigBuilder<SetLoadIds<S>>where
S::LoadIds: IsUnset,
pub fn load_ids(
self,
value: Vec<String>,
) -> BinanceInstrumentProviderConfigBuilder<SetLoadIds<S>>where
S::LoadIds: IsUnset,
Sourcepub fn maybe_load_ids(
self,
value: Option<Vec<String>>,
) -> BinanceInstrumentProviderConfigBuilder<SetLoadIds<S>>where
S::LoadIds: IsUnset,
pub fn maybe_load_ids(
self,
value: Option<Vec<String>>,
) -> BinanceInstrumentProviderConfigBuilder<SetLoadIds<S>>where
S::LoadIds: IsUnset,
Sourcepub fn filters(
self,
value: HashMap<String, Value>,
) -> BinanceInstrumentProviderConfigBuilder<SetFilters<S>>where
S::Filters: IsUnset,
pub fn filters(
self,
value: HashMap<String, Value>,
) -> BinanceInstrumentProviderConfigBuilder<SetFilters<S>>where
S::Filters: IsUnset,
Sourcepub fn maybe_filters(
self,
value: Option<HashMap<String, Value>>,
) -> BinanceInstrumentProviderConfigBuilder<SetFilters<S>>where
S::Filters: IsUnset,
pub fn maybe_filters(
self,
value: Option<HashMap<String, Value>>,
) -> BinanceInstrumentProviderConfigBuilder<SetFilters<S>>where
S::Filters: IsUnset,
Sourcepub fn filter_callable(
self,
value: String,
) -> BinanceInstrumentProviderConfigBuilder<SetFilterCallable<S>>where
S::FilterCallable: IsUnset,
pub fn filter_callable(
self,
value: String,
) -> BinanceInstrumentProviderConfigBuilder<SetFilterCallable<S>>where
S::FilterCallable: IsUnset,
Sourcepub fn maybe_filter_callable(
self,
value: Option<String>,
) -> BinanceInstrumentProviderConfigBuilder<SetFilterCallable<S>>where
S::FilterCallable: IsUnset,
pub fn maybe_filter_callable(
self,
value: Option<String>,
) -> BinanceInstrumentProviderConfigBuilder<SetFilterCallable<S>>where
S::FilterCallable: IsUnset,
Sourcepub fn log_warnings(
self,
value: bool,
) -> BinanceInstrumentProviderConfigBuilder<SetLogWarnings<S>>where
S::LogWarnings: IsUnset,
pub fn log_warnings(
self,
value: bool,
) -> BinanceInstrumentProviderConfigBuilder<SetLogWarnings<S>>where
S::LogWarnings: IsUnset,
Sourcepub fn maybe_log_warnings(
self,
value: Option<bool>,
) -> BinanceInstrumentProviderConfigBuilder<SetLogWarnings<S>>where
S::LogWarnings: IsUnset,
pub fn maybe_log_warnings(
self,
value: Option<bool>,
) -> BinanceInstrumentProviderConfigBuilder<SetLogWarnings<S>>where
S::LogWarnings: IsUnset,
Sourcepub fn query_commission_rates(
self,
value: bool,
) -> BinanceInstrumentProviderConfigBuilder<SetQueryCommissionRates<S>>where
S::QueryCommissionRates: IsUnset,
pub fn query_commission_rates(
self,
value: bool,
) -> BinanceInstrumentProviderConfigBuilder<SetQueryCommissionRates<S>>where
S::QueryCommissionRates: IsUnset,
Sourcepub fn maybe_query_commission_rates(
self,
value: Option<bool>,
) -> BinanceInstrumentProviderConfigBuilder<SetQueryCommissionRates<S>>where
S::QueryCommissionRates: IsUnset,
pub fn maybe_query_commission_rates(
self,
value: Option<bool>,
) -> BinanceInstrumentProviderConfigBuilder<SetQueryCommissionRates<S>>where
S::QueryCommissionRates: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for BinanceInstrumentProviderConfigBuilder<S>
impl<S> RefUnwindSafe for BinanceInstrumentProviderConfigBuilder<S>where
PhantomData<(fn() -> S, fn() -> PhantomData<BinanceInstrumentProviderConfig>)>: RefUnwindSafe,
impl<S> Send for BinanceInstrumentProviderConfigBuilder<S>
impl<S> Sync for BinanceInstrumentProviderConfigBuilder<S>
impl<S> Unpin for BinanceInstrumentProviderConfigBuilder<S>
impl<S> UnsafeUnpin for BinanceInstrumentProviderConfigBuilder<S>
impl<S> UnwindSafe for BinanceInstrumentProviderConfigBuilder<S>
Blanket Implementations§
impl<T> Allocation for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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