pub struct HyperliquidDataClientConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> HyperliquidDataClientConfigBuilder<S>
impl<S: State> HyperliquidDataClientConfigBuilder<S>
Sourcepub fn build(self) -> HyperliquidDataClientConfigwhere
S: IsComplete,
pub fn build(self) -> HyperliquidDataClientConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn private_key(
self,
value: String,
) -> HyperliquidDataClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
pub fn private_key(
self,
value: String,
) -> HyperliquidDataClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
Sourcepub fn maybe_private_key(
self,
value: Option<String>,
) -> HyperliquidDataClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
pub fn maybe_private_key(
self,
value: Option<String>,
) -> HyperliquidDataClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
Sourcepub fn base_url_ws(
self,
value: String,
) -> HyperliquidDataClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
pub fn base_url_ws(
self,
value: String,
) -> HyperliquidDataClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
Sourcepub fn maybe_base_url_ws(
self,
value: Option<String>,
) -> HyperliquidDataClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
pub fn maybe_base_url_ws(
self,
value: Option<String>,
) -> HyperliquidDataClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
Sourcepub fn base_url_http(
self,
value: String,
) -> HyperliquidDataClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
pub fn base_url_http(
self,
value: String,
) -> HyperliquidDataClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
Sourcepub fn maybe_base_url_http(
self,
value: Option<String>,
) -> HyperliquidDataClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
pub fn maybe_base_url_http(
self,
value: Option<String>,
) -> HyperliquidDataClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
Sourcepub fn http_proxy_url(
self,
value: String,
) -> HyperliquidDataClientConfigBuilder<SetHttpProxyUrl<S>>where
S::HttpProxyUrl: IsUnset,
pub fn http_proxy_url(
self,
value: String,
) -> HyperliquidDataClientConfigBuilder<SetHttpProxyUrl<S>>where
S::HttpProxyUrl: IsUnset,
Sourcepub fn maybe_http_proxy_url(
self,
value: Option<String>,
) -> HyperliquidDataClientConfigBuilder<SetHttpProxyUrl<S>>where
S::HttpProxyUrl: IsUnset,
pub fn maybe_http_proxy_url(
self,
value: Option<String>,
) -> HyperliquidDataClientConfigBuilder<SetHttpProxyUrl<S>>where
S::HttpProxyUrl: IsUnset,
Sourcepub fn ws_proxy_url(
self,
value: String,
) -> HyperliquidDataClientConfigBuilder<SetWsProxyUrl<S>>where
S::WsProxyUrl: IsUnset,
pub fn ws_proxy_url(
self,
value: String,
) -> HyperliquidDataClientConfigBuilder<SetWsProxyUrl<S>>where
S::WsProxyUrl: IsUnset,
Sourcepub fn maybe_ws_proxy_url(
self,
value: Option<String>,
) -> HyperliquidDataClientConfigBuilder<SetWsProxyUrl<S>>where
S::WsProxyUrl: IsUnset,
pub fn maybe_ws_proxy_url(
self,
value: Option<String>,
) -> HyperliquidDataClientConfigBuilder<SetWsProxyUrl<S>>where
S::WsProxyUrl: IsUnset,
Sourcepub fn is_testnet(
self,
value: bool,
) -> HyperliquidDataClientConfigBuilder<SetIsTestnet<S>>where
S::IsTestnet: IsUnset,
pub fn is_testnet(
self,
value: bool,
) -> HyperliquidDataClientConfigBuilder<SetIsTestnet<S>>where
S::IsTestnet: IsUnset,
Sourcepub fn maybe_is_testnet(
self,
value: Option<bool>,
) -> HyperliquidDataClientConfigBuilder<SetIsTestnet<S>>where
S::IsTestnet: IsUnset,
pub fn maybe_is_testnet(
self,
value: Option<bool>,
) -> HyperliquidDataClientConfigBuilder<SetIsTestnet<S>>where
S::IsTestnet: IsUnset,
Sourcepub fn http_timeout_secs(
self,
value: u64,
) -> HyperliquidDataClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
pub fn http_timeout_secs(
self,
value: u64,
) -> HyperliquidDataClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
Sourcepub fn maybe_http_timeout_secs(
self,
value: Option<u64>,
) -> HyperliquidDataClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
pub fn maybe_http_timeout_secs(
self,
value: Option<u64>,
) -> HyperliquidDataClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
Sourcepub fn ws_timeout_secs(
self,
value: u64,
) -> HyperliquidDataClientConfigBuilder<SetWsTimeoutSecs<S>>where
S::WsTimeoutSecs: IsUnset,
pub fn ws_timeout_secs(
self,
value: u64,
) -> HyperliquidDataClientConfigBuilder<SetWsTimeoutSecs<S>>where
S::WsTimeoutSecs: IsUnset,
Sourcepub fn maybe_ws_timeout_secs(
self,
value: Option<u64>,
) -> HyperliquidDataClientConfigBuilder<SetWsTimeoutSecs<S>>where
S::WsTimeoutSecs: IsUnset,
pub fn maybe_ws_timeout_secs(
self,
value: Option<u64>,
) -> HyperliquidDataClientConfigBuilder<SetWsTimeoutSecs<S>>where
S::WsTimeoutSecs: IsUnset,
Sourcepub fn update_instruments_interval_mins(
self,
value: u64,
) -> HyperliquidDataClientConfigBuilder<SetUpdateInstrumentsIntervalMins<S>>where
S::UpdateInstrumentsIntervalMins: IsUnset,
pub fn update_instruments_interval_mins(
self,
value: u64,
) -> HyperliquidDataClientConfigBuilder<SetUpdateInstrumentsIntervalMins<S>>where
S::UpdateInstrumentsIntervalMins: IsUnset,
Sourcepub fn maybe_update_instruments_interval_mins(
self,
value: Option<u64>,
) -> HyperliquidDataClientConfigBuilder<SetUpdateInstrumentsIntervalMins<S>>where
S::UpdateInstrumentsIntervalMins: IsUnset,
pub fn maybe_update_instruments_interval_mins(
self,
value: Option<u64>,
) -> HyperliquidDataClientConfigBuilder<SetUpdateInstrumentsIntervalMins<S>>where
S::UpdateInstrumentsIntervalMins: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for HyperliquidDataClientConfigBuilder<S>
impl<S> RefUnwindSafe for HyperliquidDataClientConfigBuilder<S>
impl<S> Send for HyperliquidDataClientConfigBuilder<S>
impl<S> Sync for HyperliquidDataClientConfigBuilder<S>
impl<S> Unpin for HyperliquidDataClientConfigBuilder<S>
impl<S> UnsafeUnpin for HyperliquidDataClientConfigBuilder<S>
impl<S> UnwindSafe for HyperliquidDataClientConfigBuilder<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