pub struct HyperliquidExecClientConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> HyperliquidExecClientConfigBuilder<S>
impl<S: State> HyperliquidExecClientConfigBuilder<S>
Sourcepub fn build(self) -> HyperliquidExecClientConfigwhere
S: IsComplete,
pub fn build(self) -> HyperliquidExecClientConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn private_key(
self,
value: String,
) -> HyperliquidExecClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
pub fn private_key(
self,
value: String,
) -> HyperliquidExecClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
Sourcepub fn maybe_private_key(
self,
value: Option<String>,
) -> HyperliquidExecClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
pub fn maybe_private_key(
self,
value: Option<String>,
) -> HyperliquidExecClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
Sourcepub fn vault_address(
self,
value: String,
) -> HyperliquidExecClientConfigBuilder<SetVaultAddress<S>>where
S::VaultAddress: IsUnset,
pub fn vault_address(
self,
value: String,
) -> HyperliquidExecClientConfigBuilder<SetVaultAddress<S>>where
S::VaultAddress: IsUnset,
Sourcepub fn maybe_vault_address(
self,
value: Option<String>,
) -> HyperliquidExecClientConfigBuilder<SetVaultAddress<S>>where
S::VaultAddress: IsUnset,
pub fn maybe_vault_address(
self,
value: Option<String>,
) -> HyperliquidExecClientConfigBuilder<SetVaultAddress<S>>where
S::VaultAddress: IsUnset,
Sourcepub fn account_address(
self,
value: String,
) -> HyperliquidExecClientConfigBuilder<SetAccountAddress<S>>where
S::AccountAddress: IsUnset,
pub fn account_address(
self,
value: String,
) -> HyperliquidExecClientConfigBuilder<SetAccountAddress<S>>where
S::AccountAddress: IsUnset,
Sourcepub fn maybe_account_address(
self,
value: Option<String>,
) -> HyperliquidExecClientConfigBuilder<SetAccountAddress<S>>where
S::AccountAddress: IsUnset,
pub fn maybe_account_address(
self,
value: Option<String>,
) -> HyperliquidExecClientConfigBuilder<SetAccountAddress<S>>where
S::AccountAddress: IsUnset,
Sourcepub fn base_url_ws(
self,
value: String,
) -> HyperliquidExecClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
pub fn base_url_ws(
self,
value: String,
) -> HyperliquidExecClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
Sourcepub fn maybe_base_url_ws(
self,
value: Option<String>,
) -> HyperliquidExecClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
pub fn maybe_base_url_ws(
self,
value: Option<String>,
) -> HyperliquidExecClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
Sourcepub fn base_url_http(
self,
value: String,
) -> HyperliquidExecClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
pub fn base_url_http(
self,
value: String,
) -> HyperliquidExecClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
Sourcepub fn maybe_base_url_http(
self,
value: Option<String>,
) -> HyperliquidExecClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
pub fn maybe_base_url_http(
self,
value: Option<String>,
) -> HyperliquidExecClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
Sourcepub fn base_url_exchange(
self,
value: String,
) -> HyperliquidExecClientConfigBuilder<SetBaseUrlExchange<S>>where
S::BaseUrlExchange: IsUnset,
pub fn base_url_exchange(
self,
value: String,
) -> HyperliquidExecClientConfigBuilder<SetBaseUrlExchange<S>>where
S::BaseUrlExchange: IsUnset,
Sourcepub fn maybe_base_url_exchange(
self,
value: Option<String>,
) -> HyperliquidExecClientConfigBuilder<SetBaseUrlExchange<S>>where
S::BaseUrlExchange: IsUnset,
pub fn maybe_base_url_exchange(
self,
value: Option<String>,
) -> HyperliquidExecClientConfigBuilder<SetBaseUrlExchange<S>>where
S::BaseUrlExchange: IsUnset,
Sourcepub fn http_proxy_url(
self,
value: String,
) -> HyperliquidExecClientConfigBuilder<SetHttpProxyUrl<S>>where
S::HttpProxyUrl: IsUnset,
pub fn http_proxy_url(
self,
value: String,
) -> HyperliquidExecClientConfigBuilder<SetHttpProxyUrl<S>>where
S::HttpProxyUrl: IsUnset,
Sourcepub fn maybe_http_proxy_url(
self,
value: Option<String>,
) -> HyperliquidExecClientConfigBuilder<SetHttpProxyUrl<S>>where
S::HttpProxyUrl: IsUnset,
pub fn maybe_http_proxy_url(
self,
value: Option<String>,
) -> HyperliquidExecClientConfigBuilder<SetHttpProxyUrl<S>>where
S::HttpProxyUrl: IsUnset,
Sourcepub fn ws_proxy_url(
self,
value: String,
) -> HyperliquidExecClientConfigBuilder<SetWsProxyUrl<S>>where
S::WsProxyUrl: IsUnset,
pub fn ws_proxy_url(
self,
value: String,
) -> HyperliquidExecClientConfigBuilder<SetWsProxyUrl<S>>where
S::WsProxyUrl: IsUnset,
Sourcepub fn maybe_ws_proxy_url(
self,
value: Option<String>,
) -> HyperliquidExecClientConfigBuilder<SetWsProxyUrl<S>>where
S::WsProxyUrl: IsUnset,
pub fn maybe_ws_proxy_url(
self,
value: Option<String>,
) -> HyperliquidExecClientConfigBuilder<SetWsProxyUrl<S>>where
S::WsProxyUrl: IsUnset,
Sourcepub fn is_testnet(
self,
value: bool,
) -> HyperliquidExecClientConfigBuilder<SetIsTestnet<S>>where
S::IsTestnet: IsUnset,
pub fn is_testnet(
self,
value: bool,
) -> HyperliquidExecClientConfigBuilder<SetIsTestnet<S>>where
S::IsTestnet: IsUnset,
Sourcepub fn maybe_is_testnet(
self,
value: Option<bool>,
) -> HyperliquidExecClientConfigBuilder<SetIsTestnet<S>>where
S::IsTestnet: IsUnset,
pub fn maybe_is_testnet(
self,
value: Option<bool>,
) -> HyperliquidExecClientConfigBuilder<SetIsTestnet<S>>where
S::IsTestnet: IsUnset,
Sourcepub fn http_timeout_secs(
self,
value: u64,
) -> HyperliquidExecClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
pub fn http_timeout_secs(
self,
value: u64,
) -> HyperliquidExecClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
Sourcepub fn maybe_http_timeout_secs(
self,
value: Option<u64>,
) -> HyperliquidExecClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
pub fn maybe_http_timeout_secs(
self,
value: Option<u64>,
) -> HyperliquidExecClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
Sourcepub fn max_retries(
self,
value: u32,
) -> HyperliquidExecClientConfigBuilder<SetMaxRetries<S>>where
S::MaxRetries: IsUnset,
pub fn max_retries(
self,
value: u32,
) -> HyperliquidExecClientConfigBuilder<SetMaxRetries<S>>where
S::MaxRetries: IsUnset,
Sourcepub fn maybe_max_retries(
self,
value: Option<u32>,
) -> HyperliquidExecClientConfigBuilder<SetMaxRetries<S>>where
S::MaxRetries: IsUnset,
pub fn maybe_max_retries(
self,
value: Option<u32>,
) -> HyperliquidExecClientConfigBuilder<SetMaxRetries<S>>where
S::MaxRetries: IsUnset,
Sourcepub fn retry_delay_initial_ms(
self,
value: u64,
) -> HyperliquidExecClientConfigBuilder<SetRetryDelayInitialMs<S>>where
S::RetryDelayInitialMs: IsUnset,
pub fn retry_delay_initial_ms(
self,
value: u64,
) -> HyperliquidExecClientConfigBuilder<SetRetryDelayInitialMs<S>>where
S::RetryDelayInitialMs: IsUnset,
Sourcepub fn maybe_retry_delay_initial_ms(
self,
value: Option<u64>,
) -> HyperliquidExecClientConfigBuilder<SetRetryDelayInitialMs<S>>where
S::RetryDelayInitialMs: IsUnset,
pub fn maybe_retry_delay_initial_ms(
self,
value: Option<u64>,
) -> HyperliquidExecClientConfigBuilder<SetRetryDelayInitialMs<S>>where
S::RetryDelayInitialMs: IsUnset,
Sourcepub fn retry_delay_max_ms(
self,
value: u64,
) -> HyperliquidExecClientConfigBuilder<SetRetryDelayMaxMs<S>>where
S::RetryDelayMaxMs: IsUnset,
pub fn retry_delay_max_ms(
self,
value: u64,
) -> HyperliquidExecClientConfigBuilder<SetRetryDelayMaxMs<S>>where
S::RetryDelayMaxMs: IsUnset,
Sourcepub fn maybe_retry_delay_max_ms(
self,
value: Option<u64>,
) -> HyperliquidExecClientConfigBuilder<SetRetryDelayMaxMs<S>>where
S::RetryDelayMaxMs: IsUnset,
pub fn maybe_retry_delay_max_ms(
self,
value: Option<u64>,
) -> HyperliquidExecClientConfigBuilder<SetRetryDelayMaxMs<S>>where
S::RetryDelayMaxMs: IsUnset,
Sourcepub fn normalize_prices(
self,
value: bool,
) -> HyperliquidExecClientConfigBuilder<SetNormalizePrices<S>>where
S::NormalizePrices: IsUnset,
pub fn normalize_prices(
self,
value: bool,
) -> HyperliquidExecClientConfigBuilder<SetNormalizePrices<S>>where
S::NormalizePrices: IsUnset,
Sourcepub fn maybe_normalize_prices(
self,
value: Option<bool>,
) -> HyperliquidExecClientConfigBuilder<SetNormalizePrices<S>>where
S::NormalizePrices: IsUnset,
pub fn maybe_normalize_prices(
self,
value: Option<bool>,
) -> HyperliquidExecClientConfigBuilder<SetNormalizePrices<S>>where
S::NormalizePrices: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for HyperliquidExecClientConfigBuilder<S>
impl<S> RefUnwindSafe for HyperliquidExecClientConfigBuilder<S>
impl<S> Send for HyperliquidExecClientConfigBuilder<S>
impl<S> Sync for HyperliquidExecClientConfigBuilder<S>
impl<S> Unpin for HyperliquidExecClientConfigBuilder<S>
impl<S> UnsafeUnpin for HyperliquidExecClientConfigBuilder<S>
impl<S> UnwindSafe for HyperliquidExecClientConfigBuilder<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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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