pub struct DydxExecClientConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> DydxExecClientConfigBuilder<S>
impl<S: State> DydxExecClientConfigBuilder<S>
Sourcepub fn build(self) -> DydxExecClientConfigwhere
S: IsComplete,
pub fn build(self) -> DydxExecClientConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn trader_id(
self,
value: TraderId,
) -> DydxExecClientConfigBuilder<SetTraderId<S>>where
S::TraderId: IsUnset,
pub fn trader_id(
self,
value: TraderId,
) -> DydxExecClientConfigBuilder<SetTraderId<S>>where
S::TraderId: IsUnset,
Sourcepub fn maybe_trader_id(
self,
value: Option<TraderId>,
) -> DydxExecClientConfigBuilder<SetTraderId<S>>where
S::TraderId: IsUnset,
pub fn maybe_trader_id(
self,
value: Option<TraderId>,
) -> DydxExecClientConfigBuilder<SetTraderId<S>>where
S::TraderId: IsUnset,
Sourcepub fn account_id(
self,
value: AccountId,
) -> DydxExecClientConfigBuilder<SetAccountId<S>>where
S::AccountId: IsUnset,
pub fn account_id(
self,
value: AccountId,
) -> DydxExecClientConfigBuilder<SetAccountId<S>>where
S::AccountId: IsUnset,
Sourcepub fn maybe_account_id(
self,
value: Option<AccountId>,
) -> DydxExecClientConfigBuilder<SetAccountId<S>>where
S::AccountId: IsUnset,
pub fn maybe_account_id(
self,
value: Option<AccountId>,
) -> DydxExecClientConfigBuilder<SetAccountId<S>>where
S::AccountId: IsUnset,
Sourcepub fn network(
self,
value: DydxNetwork,
) -> DydxExecClientConfigBuilder<SetNetwork<S>>where
S::Network: IsUnset,
pub fn network(
self,
value: DydxNetwork,
) -> DydxExecClientConfigBuilder<SetNetwork<S>>where
S::Network: IsUnset,
Sourcepub fn maybe_network(
self,
value: Option<DydxNetwork>,
) -> DydxExecClientConfigBuilder<SetNetwork<S>>where
S::Network: IsUnset,
pub fn maybe_network(
self,
value: Option<DydxNetwork>,
) -> DydxExecClientConfigBuilder<SetNetwork<S>>where
S::Network: IsUnset,
Sourcepub fn grpc_endpoint(
self,
value: String,
) -> DydxExecClientConfigBuilder<SetGrpcEndpoint<S>>where
S::GrpcEndpoint: IsUnset,
pub fn grpc_endpoint(
self,
value: String,
) -> DydxExecClientConfigBuilder<SetGrpcEndpoint<S>>where
S::GrpcEndpoint: IsUnset,
Sourcepub fn maybe_grpc_endpoint(
self,
value: Option<String>,
) -> DydxExecClientConfigBuilder<SetGrpcEndpoint<S>>where
S::GrpcEndpoint: IsUnset,
pub fn maybe_grpc_endpoint(
self,
value: Option<String>,
) -> DydxExecClientConfigBuilder<SetGrpcEndpoint<S>>where
S::GrpcEndpoint: IsUnset,
Sourcepub fn grpc_urls(
self,
value: Vec<String>,
) -> DydxExecClientConfigBuilder<SetGrpcUrls<S>>where
S::GrpcUrls: IsUnset,
pub fn grpc_urls(
self,
value: Vec<String>,
) -> DydxExecClientConfigBuilder<SetGrpcUrls<S>>where
S::GrpcUrls: IsUnset,
Sourcepub fn maybe_grpc_urls(
self,
value: Option<Vec<String>>,
) -> DydxExecClientConfigBuilder<SetGrpcUrls<S>>where
S::GrpcUrls: IsUnset,
pub fn maybe_grpc_urls(
self,
value: Option<Vec<String>>,
) -> DydxExecClientConfigBuilder<SetGrpcUrls<S>>where
S::GrpcUrls: IsUnset,
Sourcepub fn ws_endpoint(
self,
value: String,
) -> DydxExecClientConfigBuilder<SetWsEndpoint<S>>where
S::WsEndpoint: IsUnset,
pub fn ws_endpoint(
self,
value: String,
) -> DydxExecClientConfigBuilder<SetWsEndpoint<S>>where
S::WsEndpoint: IsUnset,
Sourcepub fn maybe_ws_endpoint(
self,
value: Option<String>,
) -> DydxExecClientConfigBuilder<SetWsEndpoint<S>>where
S::WsEndpoint: IsUnset,
pub fn maybe_ws_endpoint(
self,
value: Option<String>,
) -> DydxExecClientConfigBuilder<SetWsEndpoint<S>>where
S::WsEndpoint: IsUnset,
Sourcepub fn http_endpoint(
self,
value: String,
) -> DydxExecClientConfigBuilder<SetHttpEndpoint<S>>where
S::HttpEndpoint: IsUnset,
pub fn http_endpoint(
self,
value: String,
) -> DydxExecClientConfigBuilder<SetHttpEndpoint<S>>where
S::HttpEndpoint: IsUnset,
Sourcepub fn maybe_http_endpoint(
self,
value: Option<String>,
) -> DydxExecClientConfigBuilder<SetHttpEndpoint<S>>where
S::HttpEndpoint: IsUnset,
pub fn maybe_http_endpoint(
self,
value: Option<String>,
) -> DydxExecClientConfigBuilder<SetHttpEndpoint<S>>where
S::HttpEndpoint: IsUnset,
Sourcepub fn private_key(
self,
value: String,
) -> DydxExecClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
pub fn private_key(
self,
value: String,
) -> DydxExecClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
Sourcepub fn maybe_private_key(
self,
value: Option<String>,
) -> DydxExecClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
pub fn maybe_private_key(
self,
value: Option<String>,
) -> DydxExecClientConfigBuilder<SetPrivateKey<S>>where
S::PrivateKey: IsUnset,
Sourcepub fn wallet_address(
self,
value: String,
) -> DydxExecClientConfigBuilder<SetWalletAddress<S>>where
S::WalletAddress: IsUnset,
pub fn wallet_address(
self,
value: String,
) -> DydxExecClientConfigBuilder<SetWalletAddress<S>>where
S::WalletAddress: IsUnset,
Sourcepub fn maybe_wallet_address(
self,
value: Option<String>,
) -> DydxExecClientConfigBuilder<SetWalletAddress<S>>where
S::WalletAddress: IsUnset,
pub fn maybe_wallet_address(
self,
value: Option<String>,
) -> DydxExecClientConfigBuilder<SetWalletAddress<S>>where
S::WalletAddress: IsUnset,
Sourcepub fn subaccount_number(
self,
value: u32,
) -> DydxExecClientConfigBuilder<SetSubaccountNumber<S>>where
S::SubaccountNumber: IsUnset,
pub fn subaccount_number(
self,
value: u32,
) -> DydxExecClientConfigBuilder<SetSubaccountNumber<S>>where
S::SubaccountNumber: IsUnset,
Sourcepub fn maybe_subaccount_number(
self,
value: Option<u32>,
) -> DydxExecClientConfigBuilder<SetSubaccountNumber<S>>where
S::SubaccountNumber: IsUnset,
pub fn maybe_subaccount_number(
self,
value: Option<u32>,
) -> DydxExecClientConfigBuilder<SetSubaccountNumber<S>>where
S::SubaccountNumber: IsUnset,
Sourcepub fn authenticator_ids(
self,
value: Vec<u64>,
) -> DydxExecClientConfigBuilder<SetAuthenticatorIds<S>>where
S::AuthenticatorIds: IsUnset,
pub fn authenticator_ids(
self,
value: Vec<u64>,
) -> DydxExecClientConfigBuilder<SetAuthenticatorIds<S>>where
S::AuthenticatorIds: IsUnset,
Sourcepub fn maybe_authenticator_ids(
self,
value: Option<Vec<u64>>,
) -> DydxExecClientConfigBuilder<SetAuthenticatorIds<S>>where
S::AuthenticatorIds: IsUnset,
pub fn maybe_authenticator_ids(
self,
value: Option<Vec<u64>>,
) -> DydxExecClientConfigBuilder<SetAuthenticatorIds<S>>where
S::AuthenticatorIds: IsUnset,
Sourcepub fn http_timeout_secs(
self,
value: u64,
) -> DydxExecClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
pub fn http_timeout_secs(
self,
value: u64,
) -> DydxExecClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
Sourcepub fn maybe_http_timeout_secs(
self,
value: Option<u64>,
) -> DydxExecClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
pub fn maybe_http_timeout_secs(
self,
value: Option<u64>,
) -> DydxExecClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
Sourcepub fn max_retries(
self,
value: u32,
) -> DydxExecClientConfigBuilder<SetMaxRetries<S>>where
S::MaxRetries: IsUnset,
pub fn max_retries(
self,
value: u32,
) -> DydxExecClientConfigBuilder<SetMaxRetries<S>>where
S::MaxRetries: IsUnset,
Sourcepub fn maybe_max_retries(
self,
value: Option<u32>,
) -> DydxExecClientConfigBuilder<SetMaxRetries<S>>where
S::MaxRetries: IsUnset,
pub fn maybe_max_retries(
self,
value: Option<u32>,
) -> DydxExecClientConfigBuilder<SetMaxRetries<S>>where
S::MaxRetries: IsUnset,
Sourcepub fn retry_delay_initial_ms(
self,
value: u64,
) -> DydxExecClientConfigBuilder<SetRetryDelayInitialMs<S>>where
S::RetryDelayInitialMs: IsUnset,
pub fn retry_delay_initial_ms(
self,
value: u64,
) -> DydxExecClientConfigBuilder<SetRetryDelayInitialMs<S>>where
S::RetryDelayInitialMs: IsUnset,
Sourcepub fn maybe_retry_delay_initial_ms(
self,
value: Option<u64>,
) -> DydxExecClientConfigBuilder<SetRetryDelayInitialMs<S>>where
S::RetryDelayInitialMs: IsUnset,
pub fn maybe_retry_delay_initial_ms(
self,
value: Option<u64>,
) -> DydxExecClientConfigBuilder<SetRetryDelayInitialMs<S>>where
S::RetryDelayInitialMs: IsUnset,
Sourcepub fn retry_delay_max_ms(
self,
value: u64,
) -> DydxExecClientConfigBuilder<SetRetryDelayMaxMs<S>>where
S::RetryDelayMaxMs: IsUnset,
pub fn retry_delay_max_ms(
self,
value: u64,
) -> DydxExecClientConfigBuilder<SetRetryDelayMaxMs<S>>where
S::RetryDelayMaxMs: IsUnset,
Sourcepub fn maybe_retry_delay_max_ms(
self,
value: Option<u64>,
) -> DydxExecClientConfigBuilder<SetRetryDelayMaxMs<S>>where
S::RetryDelayMaxMs: IsUnset,
pub fn maybe_retry_delay_max_ms(
self,
value: Option<u64>,
) -> DydxExecClientConfigBuilder<SetRetryDelayMaxMs<S>>where
S::RetryDelayMaxMs: IsUnset,
Sourcepub fn grpc_rate_limit_per_second(
self,
value: u32,
) -> DydxExecClientConfigBuilder<SetGrpcRateLimitPerSecond<S>>where
S::GrpcRateLimitPerSecond: IsUnset,
pub fn grpc_rate_limit_per_second(
self,
value: u32,
) -> DydxExecClientConfigBuilder<SetGrpcRateLimitPerSecond<S>>where
S::GrpcRateLimitPerSecond: IsUnset,
Sourcepub fn maybe_grpc_rate_limit_per_second(
self,
value: Option<u32>,
) -> DydxExecClientConfigBuilder<SetGrpcRateLimitPerSecond<S>>where
S::GrpcRateLimitPerSecond: IsUnset,
pub fn maybe_grpc_rate_limit_per_second(
self,
value: Option<u32>,
) -> DydxExecClientConfigBuilder<SetGrpcRateLimitPerSecond<S>>where
S::GrpcRateLimitPerSecond: IsUnset,
Sourcepub fn proxy_url(
self,
value: String,
) -> DydxExecClientConfigBuilder<SetProxyUrl<S>>where
S::ProxyUrl: IsUnset,
pub fn proxy_url(
self,
value: String,
) -> DydxExecClientConfigBuilder<SetProxyUrl<S>>where
S::ProxyUrl: IsUnset,
Sourcepub fn maybe_proxy_url(
self,
value: Option<String>,
) -> DydxExecClientConfigBuilder<SetProxyUrl<S>>where
S::ProxyUrl: IsUnset,
pub fn maybe_proxy_url(
self,
value: Option<String>,
) -> DydxExecClientConfigBuilder<SetProxyUrl<S>>where
S::ProxyUrl: IsUnset,
Sourcepub fn transport_backend(
self,
value: TransportBackend,
) -> DydxExecClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
pub fn transport_backend(
self,
value: TransportBackend,
) -> DydxExecClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
Sourcepub fn maybe_transport_backend(
self,
value: Option<TransportBackend>,
) -> DydxExecClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
pub fn maybe_transport_backend(
self,
value: Option<TransportBackend>,
) -> DydxExecClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for DydxExecClientConfigBuilder<S>
impl<S> RefUnwindSafe for DydxExecClientConfigBuilder<S>
impl<S> Send for DydxExecClientConfigBuilder<S>
impl<S> Sync for DydxExecClientConfigBuilder<S>
impl<S> Unpin for DydxExecClientConfigBuilder<S>
impl<S> UnsafeUnpin for DydxExecClientConfigBuilder<S>
impl<S> UnwindSafe for DydxExecClientConfigBuilder<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
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].