pub struct LighterExecutionClientConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> LighterExecutionClientConfigBuilder<S>
impl<S: State> LighterExecutionClientConfigBuilder<S>
Sourcepub fn build(self) -> LighterExecutionClientConfigwhere
S: IsComplete,
pub fn build(self) -> LighterExecutionClientConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn environment(
self,
value: LighterEnvironment,
) -> LighterExecutionClientConfigBuilder<SetEnvironment<S>>where
S::Environment: IsUnset,
pub fn environment(
self,
value: LighterEnvironment,
) -> LighterExecutionClientConfigBuilder<SetEnvironment<S>>where
S::Environment: IsUnset,
Sourcepub fn maybe_environment(
self,
value: Option<LighterEnvironment>,
) -> LighterExecutionClientConfigBuilder<SetEnvironment<S>>where
S::Environment: IsUnset,
pub fn maybe_environment(
self,
value: Option<LighterEnvironment>,
) -> LighterExecutionClientConfigBuilder<SetEnvironment<S>>where
S::Environment: IsUnset,
Sourcepub fn deployment(
self,
value: LighterDeployment,
) -> LighterExecutionClientConfigBuilder<SetDeployment<S>>where
S::Deployment: IsUnset,
pub fn deployment(
self,
value: LighterDeployment,
) -> LighterExecutionClientConfigBuilder<SetDeployment<S>>where
S::Deployment: IsUnset,
Sourcepub fn maybe_deployment(
self,
value: Option<LighterDeployment>,
) -> LighterExecutionClientConfigBuilder<SetDeployment<S>>where
S::Deployment: IsUnset,
pub fn maybe_deployment(
self,
value: Option<LighterDeployment>,
) -> LighterExecutionClientConfigBuilder<SetDeployment<S>>where
S::Deployment: IsUnset,
Sourcepub fn venue(
self,
value: Venue,
) -> LighterExecutionClientConfigBuilder<SetVenue<S>>where
S::Venue: IsUnset,
pub fn venue(
self,
value: Venue,
) -> LighterExecutionClientConfigBuilder<SetVenue<S>>where
S::Venue: IsUnset,
Sourcepub fn maybe_venue(
self,
value: Option<Venue>,
) -> LighterExecutionClientConfigBuilder<SetVenue<S>>where
S::Venue: IsUnset,
pub fn maybe_venue(
self,
value: Option<Venue>,
) -> LighterExecutionClientConfigBuilder<SetVenue<S>>where
S::Venue: IsUnset,
Sourcepub fn account_id(
self,
value: AccountId,
) -> LighterExecutionClientConfigBuilder<SetAccountId<S>>where
S::AccountId: IsUnset,
pub fn account_id(
self,
value: AccountId,
) -> LighterExecutionClientConfigBuilder<SetAccountId<S>>where
S::AccountId: IsUnset,
Sourcepub fn maybe_account_id(
self,
value: Option<AccountId>,
) -> LighterExecutionClientConfigBuilder<SetAccountId<S>>where
S::AccountId: IsUnset,
pub fn maybe_account_id(
self,
value: Option<AccountId>,
) -> LighterExecutionClientConfigBuilder<SetAccountId<S>>where
S::AccountId: IsUnset,
Sourcepub fn account_index(
self,
value: u64,
) -> LighterExecutionClientConfigBuilder<SetAccountIndex<S>>where
S::AccountIndex: IsUnset,
pub fn account_index(
self,
value: u64,
) -> LighterExecutionClientConfigBuilder<SetAccountIndex<S>>where
S::AccountIndex: IsUnset,
Sourcepub fn maybe_account_index(
self,
value: Option<u64>,
) -> LighterExecutionClientConfigBuilder<SetAccountIndex<S>>where
S::AccountIndex: IsUnset,
pub fn maybe_account_index(
self,
value: Option<u64>,
) -> LighterExecutionClientConfigBuilder<SetAccountIndex<S>>where
S::AccountIndex: IsUnset,
Sourcepub fn api_key_index(
self,
value: u8,
) -> LighterExecutionClientConfigBuilder<SetApiKeyIndex<S>>where
S::ApiKeyIndex: IsUnset,
pub fn api_key_index(
self,
value: u8,
) -> LighterExecutionClientConfigBuilder<SetApiKeyIndex<S>>where
S::ApiKeyIndex: IsUnset,
Sourcepub fn maybe_api_key_index(
self,
value: Option<u8>,
) -> LighterExecutionClientConfigBuilder<SetApiKeyIndex<S>>where
S::ApiKeyIndex: IsUnset,
pub fn maybe_api_key_index(
self,
value: Option<u8>,
) -> LighterExecutionClientConfigBuilder<SetApiKeyIndex<S>>where
S::ApiKeyIndex: IsUnset,
Sourcepub fn private_key(
self,
value: String,
) -> LighterExecutionClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
pub fn private_key(
self,
value: String,
) -> LighterExecutionClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
Sourcepub fn maybe_private_key(
self,
value: Option<String>,
) -> LighterExecutionClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
pub fn maybe_private_key(
self,
value: Option<String>,
) -> LighterExecutionClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
Sourcepub fn base_url_http(
self,
value: String,
) -> LighterExecutionClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
pub fn base_url_http(
self,
value: String,
) -> LighterExecutionClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
Sourcepub fn maybe_base_url_http(
self,
value: Option<String>,
) -> LighterExecutionClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
pub fn maybe_base_url_http(
self,
value: Option<String>,
) -> LighterExecutionClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
Sourcepub fn base_url_ws(
self,
value: String,
) -> LighterExecutionClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
pub fn base_url_ws(
self,
value: String,
) -> LighterExecutionClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
Sourcepub fn maybe_base_url_ws(
self,
value: Option<String>,
) -> LighterExecutionClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
pub fn maybe_base_url_ws(
self,
value: Option<String>,
) -> LighterExecutionClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
Sourcepub fn proxy_url(
self,
value: String,
) -> LighterExecutionClientConfigBuilder<SetProxyUrl<S>>where
S::ProxyUrl: IsUnset,
pub fn proxy_url(
self,
value: String,
) -> LighterExecutionClientConfigBuilder<SetProxyUrl<S>>where
S::ProxyUrl: IsUnset,
Sourcepub fn maybe_proxy_url(
self,
value: Option<String>,
) -> LighterExecutionClientConfigBuilder<SetProxyUrl<S>>where
S::ProxyUrl: IsUnset,
pub fn maybe_proxy_url(
self,
value: Option<String>,
) -> LighterExecutionClientConfigBuilder<SetProxyUrl<S>>where
S::ProxyUrl: IsUnset,
Sourcepub fn http_timeout_secs(
self,
value: u64,
) -> LighterExecutionClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
pub fn http_timeout_secs(
self,
value: u64,
) -> LighterExecutionClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
Sourcepub fn maybe_http_timeout_secs(
self,
value: Option<u64>,
) -> LighterExecutionClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
pub fn maybe_http_timeout_secs(
self,
value: Option<u64>,
) -> LighterExecutionClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
Sourcepub fn ws_timeout_secs(
self,
value: u64,
) -> LighterExecutionClientConfigBuilder<SetWsTimeoutSecs<S>>where
S::WsTimeoutSecs: IsUnset,
pub fn ws_timeout_secs(
self,
value: u64,
) -> LighterExecutionClientConfigBuilder<SetWsTimeoutSecs<S>>where
S::WsTimeoutSecs: IsUnset,
Sourcepub fn maybe_ws_timeout_secs(
self,
value: Option<u64>,
) -> LighterExecutionClientConfigBuilder<SetWsTimeoutSecs<S>>where
S::WsTimeoutSecs: IsUnset,
pub fn maybe_ws_timeout_secs(
self,
value: Option<u64>,
) -> LighterExecutionClientConfigBuilder<SetWsTimeoutSecs<S>>where
S::WsTimeoutSecs: IsUnset,
Sourcepub fn market_order_slippage_bps(
self,
value: u32,
) -> LighterExecutionClientConfigBuilder<SetMarketOrderSlippageBps<S>>where
S::MarketOrderSlippageBps: IsUnset,
pub fn market_order_slippage_bps(
self,
value: u32,
) -> LighterExecutionClientConfigBuilder<SetMarketOrderSlippageBps<S>>where
S::MarketOrderSlippageBps: IsUnset,
Sourcepub fn maybe_market_order_slippage_bps(
self,
value: Option<u32>,
) -> LighterExecutionClientConfigBuilder<SetMarketOrderSlippageBps<S>>where
S::MarketOrderSlippageBps: IsUnset,
pub fn maybe_market_order_slippage_bps(
self,
value: Option<u32>,
) -> LighterExecutionClientConfigBuilder<SetMarketOrderSlippageBps<S>>where
S::MarketOrderSlippageBps: IsUnset,
Sourcepub fn rest_quota_per_min(
self,
value: u32,
) -> LighterExecutionClientConfigBuilder<SetRestQuotaPerMin<S>>where
S::RestQuotaPerMin: IsUnset,
pub fn rest_quota_per_min(
self,
value: u32,
) -> LighterExecutionClientConfigBuilder<SetRestQuotaPerMin<S>>where
S::RestQuotaPerMin: IsUnset,
Sourcepub fn maybe_rest_quota_per_min(
self,
value: Option<u32>,
) -> LighterExecutionClientConfigBuilder<SetRestQuotaPerMin<S>>where
S::RestQuotaPerMin: IsUnset,
pub fn maybe_rest_quota_per_min(
self,
value: Option<u32>,
) -> LighterExecutionClientConfigBuilder<SetRestQuotaPerMin<S>>where
S::RestQuotaPerMin: IsUnset,
Sourcepub fn sendtx_quota_per_min(
self,
value: u32,
) -> LighterExecutionClientConfigBuilder<SetSendtxQuotaPerMin<S>>where
S::SendtxQuotaPerMin: IsUnset,
pub fn sendtx_quota_per_min(
self,
value: u32,
) -> LighterExecutionClientConfigBuilder<SetSendtxQuotaPerMin<S>>where
S::SendtxQuotaPerMin: IsUnset,
Sourcepub fn maybe_sendtx_quota_per_min(
self,
value: Option<u32>,
) -> LighterExecutionClientConfigBuilder<SetSendtxQuotaPerMin<S>>where
S::SendtxQuotaPerMin: IsUnset,
pub fn maybe_sendtx_quota_per_min(
self,
value: Option<u32>,
) -> LighterExecutionClientConfigBuilder<SetSendtxQuotaPerMin<S>>where
S::SendtxQuotaPerMin: IsUnset,
Sourcepub fn transport_backend(
self,
value: TransportBackend,
) -> LighterExecutionClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
pub fn transport_backend(
self,
value: TransportBackend,
) -> LighterExecutionClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
Sourcepub fn maybe_transport_backend(
self,
value: Option<TransportBackend>,
) -> LighterExecutionClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
pub fn maybe_transport_backend(
self,
value: Option<TransportBackend>,
) -> LighterExecutionClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for LighterExecutionClientConfigBuilder<S>
impl<S> RefUnwindSafe for LighterExecutionClientConfigBuilder<S>
impl<S> Send for LighterExecutionClientConfigBuilder<S>
impl<S> Sync for LighterExecutionClientConfigBuilder<S>
impl<S> Unpin for LighterExecutionClientConfigBuilder<S>
impl<S> UnsafeUnpin for LighterExecutionClientConfigBuilder<S>
impl<S> UnwindSafe for LighterExecutionClientConfigBuilder<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