pub struct LighterDataClientConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> LighterDataClientConfigBuilder<S>
impl<S: State> LighterDataClientConfigBuilder<S>
Sourcepub fn build(self) -> LighterDataClientConfigwhere
S: IsComplete,
pub fn build(self) -> LighterDataClientConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn base_url_http(
self,
value: String,
) -> LighterDataClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
pub fn base_url_http(
self,
value: String,
) -> LighterDataClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
Sourcepub fn maybe_base_url_http(
self,
value: Option<String>,
) -> LighterDataClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
pub fn maybe_base_url_http(
self,
value: Option<String>,
) -> LighterDataClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
Sourcepub fn base_url_ws(
self,
value: String,
) -> LighterDataClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
pub fn base_url_ws(
self,
value: String,
) -> LighterDataClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
Sourcepub fn maybe_base_url_ws(
self,
value: Option<String>,
) -> LighterDataClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
pub fn maybe_base_url_ws(
self,
value: Option<String>,
) -> LighterDataClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
Sourcepub fn proxy_url(
self,
value: String,
) -> LighterDataClientConfigBuilder<SetProxyUrl<S>>where
S::ProxyUrl: IsUnset,
pub fn proxy_url(
self,
value: String,
) -> LighterDataClientConfigBuilder<SetProxyUrl<S>>where
S::ProxyUrl: IsUnset,
Sourcepub fn maybe_proxy_url(
self,
value: Option<String>,
) -> LighterDataClientConfigBuilder<SetProxyUrl<S>>where
S::ProxyUrl: IsUnset,
pub fn maybe_proxy_url(
self,
value: Option<String>,
) -> LighterDataClientConfigBuilder<SetProxyUrl<S>>where
S::ProxyUrl: IsUnset,
Sourcepub fn environment(
self,
value: LighterEnvironment,
) -> LighterDataClientConfigBuilder<SetEnvironment<S>>where
S::Environment: IsUnset,
pub fn environment(
self,
value: LighterEnvironment,
) -> LighterDataClientConfigBuilder<SetEnvironment<S>>where
S::Environment: IsUnset,
Sourcepub fn maybe_environment(
self,
value: Option<LighterEnvironment>,
) -> LighterDataClientConfigBuilder<SetEnvironment<S>>where
S::Environment: IsUnset,
pub fn maybe_environment(
self,
value: Option<LighterEnvironment>,
) -> LighterDataClientConfigBuilder<SetEnvironment<S>>where
S::Environment: IsUnset,
Sourcepub fn account_index(
self,
value: u64,
) -> LighterDataClientConfigBuilder<SetAccountIndex<S>>where
S::AccountIndex: IsUnset,
pub fn account_index(
self,
value: u64,
) -> LighterDataClientConfigBuilder<SetAccountIndex<S>>where
S::AccountIndex: IsUnset,
Sourcepub fn maybe_account_index(
self,
value: Option<u64>,
) -> LighterDataClientConfigBuilder<SetAccountIndex<S>>where
S::AccountIndex: IsUnset,
pub fn maybe_account_index(
self,
value: Option<u64>,
) -> LighterDataClientConfigBuilder<SetAccountIndex<S>>where
S::AccountIndex: IsUnset,
Sourcepub fn api_key_index(
self,
value: u8,
) -> LighterDataClientConfigBuilder<SetApiKeyIndex<S>>where
S::ApiKeyIndex: IsUnset,
pub fn api_key_index(
self,
value: u8,
) -> LighterDataClientConfigBuilder<SetApiKeyIndex<S>>where
S::ApiKeyIndex: IsUnset,
Sourcepub fn maybe_api_key_index(
self,
value: Option<u8>,
) -> LighterDataClientConfigBuilder<SetApiKeyIndex<S>>where
S::ApiKeyIndex: IsUnset,
pub fn maybe_api_key_index(
self,
value: Option<u8>,
) -> LighterDataClientConfigBuilder<SetApiKeyIndex<S>>where
S::ApiKeyIndex: IsUnset,
Sourcepub fn private_key(
self,
value: String,
) -> LighterDataClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
pub fn private_key(
self,
value: String,
) -> LighterDataClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
Sourcepub fn maybe_private_key(
self,
value: Option<String>,
) -> LighterDataClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
pub fn maybe_private_key(
self,
value: Option<String>,
) -> LighterDataClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
Sourcepub fn http_timeout_secs(
self,
value: u64,
) -> LighterDataClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
pub fn http_timeout_secs(
self,
value: u64,
) -> LighterDataClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
Sourcepub fn maybe_http_timeout_secs(
self,
value: Option<u64>,
) -> LighterDataClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
pub fn maybe_http_timeout_secs(
self,
value: Option<u64>,
) -> LighterDataClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
Sourcepub fn ws_timeout_secs(
self,
value: u64,
) -> LighterDataClientConfigBuilder<SetWsTimeoutSecs<S>>where
S::WsTimeoutSecs: IsUnset,
pub fn ws_timeout_secs(
self,
value: u64,
) -> LighterDataClientConfigBuilder<SetWsTimeoutSecs<S>>where
S::WsTimeoutSecs: IsUnset,
Sourcepub fn maybe_ws_timeout_secs(
self,
value: Option<u64>,
) -> LighterDataClientConfigBuilder<SetWsTimeoutSecs<S>>where
S::WsTimeoutSecs: IsUnset,
pub fn maybe_ws_timeout_secs(
self,
value: Option<u64>,
) -> LighterDataClientConfigBuilder<SetWsTimeoutSecs<S>>where
S::WsTimeoutSecs: IsUnset,
Sourcepub fn update_instruments_interval_mins(
self,
value: u64,
) -> LighterDataClientConfigBuilder<SetUpdateInstrumentsIntervalMins<S>>where
S::UpdateInstrumentsIntervalMins: IsUnset,
pub fn update_instruments_interval_mins(
self,
value: u64,
) -> LighterDataClientConfigBuilder<SetUpdateInstrumentsIntervalMins<S>>where
S::UpdateInstrumentsIntervalMins: IsUnset,
Sourcepub fn maybe_update_instruments_interval_mins(
self,
value: Option<u64>,
) -> LighterDataClientConfigBuilder<SetUpdateInstrumentsIntervalMins<S>>where
S::UpdateInstrumentsIntervalMins: IsUnset,
pub fn maybe_update_instruments_interval_mins(
self,
value: Option<u64>,
) -> LighterDataClientConfigBuilder<SetUpdateInstrumentsIntervalMins<S>>where
S::UpdateInstrumentsIntervalMins: IsUnset,
Sourcepub fn rest_quota_per_min(
self,
value: u32,
) -> LighterDataClientConfigBuilder<SetRestQuotaPerMin<S>>where
S::RestQuotaPerMin: IsUnset,
pub fn rest_quota_per_min(
self,
value: u32,
) -> LighterDataClientConfigBuilder<SetRestQuotaPerMin<S>>where
S::RestQuotaPerMin: IsUnset,
Sourcepub fn maybe_rest_quota_per_min(
self,
value: Option<u32>,
) -> LighterDataClientConfigBuilder<SetRestQuotaPerMin<S>>where
S::RestQuotaPerMin: IsUnset,
pub fn maybe_rest_quota_per_min(
self,
value: Option<u32>,
) -> LighterDataClientConfigBuilder<SetRestQuotaPerMin<S>>where
S::RestQuotaPerMin: IsUnset,
Sourcepub fn transport_backend(
self,
value: TransportBackend,
) -> LighterDataClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
pub fn transport_backend(
self,
value: TransportBackend,
) -> LighterDataClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
Sourcepub fn maybe_transport_backend(
self,
value: Option<TransportBackend>,
) -> LighterDataClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
pub fn maybe_transport_backend(
self,
value: Option<TransportBackend>,
) -> LighterDataClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for LighterDataClientConfigBuilder<S>
impl<S> RefUnwindSafe for LighterDataClientConfigBuilder<S>
impl<S> Send for LighterDataClientConfigBuilder<S>
impl<S> Sync for LighterDataClientConfigBuilder<S>
impl<S> Unpin for LighterDataClientConfigBuilder<S>
impl<S> UnsafeUnpin for LighterDataClientConfigBuilder<S>
impl<S> UnwindSafe for LighterDataClientConfigBuilder<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>
§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