pub struct BlockchainExecutionClientConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> BlockchainExecutionClientConfigBuilder<S>
impl<S: State> BlockchainExecutionClientConfigBuilder<S>
Sourcepub fn build(self) -> BlockchainExecutionClientConfigwhere
S: IsComplete,
pub fn build(self) -> BlockchainExecutionClientConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn trader_id(
self,
value: TraderId,
) -> BlockchainExecutionClientConfigBuilder<SetTraderId<S>>where
S::TraderId: IsUnset,
pub fn trader_id(
self,
value: TraderId,
) -> BlockchainExecutionClientConfigBuilder<SetTraderId<S>>where
S::TraderId: IsUnset,
Required.
The trader ID for the client.
Sourcepub fn client_id(
self,
value: AccountId,
) -> BlockchainExecutionClientConfigBuilder<SetClientId<S>>where
S::ClientId: IsUnset,
pub fn client_id(
self,
value: AccountId,
) -> BlockchainExecutionClientConfigBuilder<SetClientId<S>>where
S::ClientId: IsUnset,
Required.
The account ID for the client.
Sourcepub fn chain(
self,
value: Chain,
) -> BlockchainExecutionClientConfigBuilder<SetChain<S>>where
S::Chain: IsUnset,
pub fn chain(
self,
value: Chain,
) -> BlockchainExecutionClientConfigBuilder<SetChain<S>>where
S::Chain: IsUnset,
Required.
The blockchain chain configuration.
Sourcepub fn wallet_address(
self,
value: String,
) -> BlockchainExecutionClientConfigBuilder<SetWalletAddress<S>>where
S::WalletAddress: IsUnset,
pub fn wallet_address(
self,
value: String,
) -> BlockchainExecutionClientConfigBuilder<SetWalletAddress<S>>where
S::WalletAddress: IsUnset,
Required.
The wallet address of the execution client.
Sourcepub fn tokens(
self,
value: Vec<String>,
) -> BlockchainExecutionClientConfigBuilder<SetTokens<S>>where
S::Tokens: IsUnset,
pub fn tokens(
self,
value: Vec<String>,
) -> BlockchainExecutionClientConfigBuilder<SetTokens<S>>where
S::Tokens: IsUnset,
Sourcepub fn maybe_tokens(
self,
value: Option<Vec<String>>,
) -> BlockchainExecutionClientConfigBuilder<SetTokens<S>>where
S::Tokens: IsUnset,
pub fn maybe_tokens(
self,
value: Option<Vec<String>>,
) -> BlockchainExecutionClientConfigBuilder<SetTokens<S>>where
S::Tokens: IsUnset,
Sourcepub fn http_rpc_url(
self,
value: String,
) -> BlockchainExecutionClientConfigBuilder<SetHttpRpcUrl<S>>where
S::HttpRpcUrl: IsUnset,
pub fn http_rpc_url(
self,
value: String,
) -> BlockchainExecutionClientConfigBuilder<SetHttpRpcUrl<S>>where
S::HttpRpcUrl: IsUnset,
Required.
The HTTP URL for the blockchain RPC endpoint.
Sourcepub fn rpc_requests_per_second(
self,
value: u32,
) -> BlockchainExecutionClientConfigBuilder<SetRpcRequestsPerSecond<S>>where
S::RpcRequestsPerSecond: IsUnset,
pub fn rpc_requests_per_second(
self,
value: u32,
) -> BlockchainExecutionClientConfigBuilder<SetRpcRequestsPerSecond<S>>where
S::RpcRequestsPerSecond: IsUnset,
Sourcepub fn maybe_rpc_requests_per_second(
self,
value: Option<u32>,
) -> BlockchainExecutionClientConfigBuilder<SetRpcRequestsPerSecond<S>>where
S::RpcRequestsPerSecond: IsUnset,
pub fn maybe_rpc_requests_per_second(
self,
value: Option<u32>,
) -> BlockchainExecutionClientConfigBuilder<SetRpcRequestsPerSecond<S>>where
S::RpcRequestsPerSecond: IsUnset,
Sourcepub fn transport_backend(
self,
value: TransportBackend,
) -> BlockchainExecutionClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
pub fn transport_backend(
self,
value: TransportBackend,
) -> BlockchainExecutionClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
Sourcepub fn maybe_transport_backend(
self,
value: Option<TransportBackend>,
) -> BlockchainExecutionClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
pub fn maybe_transport_backend(
self,
value: Option<TransportBackend>,
) -> BlockchainExecutionClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for BlockchainExecutionClientConfigBuilder<S>
impl<S> RefUnwindSafe for BlockchainExecutionClientConfigBuilder<S>
impl<S> Send for BlockchainExecutionClientConfigBuilder<S>
impl<S> Sync for BlockchainExecutionClientConfigBuilder<S>
impl<S> Unpin for BlockchainExecutionClientConfigBuilder<S>
impl<S> UnsafeUnpin for BlockchainExecutionClientConfigBuilder<S>
impl<S> UnwindSafe for BlockchainExecutionClientConfigBuilder<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