#[non_exhaustive]pub struct NodeEthereumAttributesBuilder { /* private fields */ }
Expand description
A builder for NodeEthereumAttributes
.
Implementations§
source§impl NodeEthereumAttributesBuilder
impl NodeEthereumAttributesBuilder
sourcepub fn http_endpoint(self, input: impl Into<String>) -> Self
pub fn http_endpoint(self, input: impl Into<String>) -> Self
The endpoint on which the Ethereum node listens to run Ethereum API methods over HTTP connections from a client. Use this endpoint in client code for smart contracts when using an HTTP connection. Connections to this endpoint are authenticated using Signature Version 4.
sourcepub fn set_http_endpoint(self, input: Option<String>) -> Self
pub fn set_http_endpoint(self, input: Option<String>) -> Self
The endpoint on which the Ethereum node listens to run Ethereum API methods over HTTP connections from a client. Use this endpoint in client code for smart contracts when using an HTTP connection. Connections to this endpoint are authenticated using Signature Version 4.
sourcepub fn get_http_endpoint(&self) -> &Option<String>
pub fn get_http_endpoint(&self) -> &Option<String>
The endpoint on which the Ethereum node listens to run Ethereum API methods over HTTP connections from a client. Use this endpoint in client code for smart contracts when using an HTTP connection. Connections to this endpoint are authenticated using Signature Version 4.
sourcepub fn web_socket_endpoint(self, input: impl Into<String>) -> Self
pub fn web_socket_endpoint(self, input: impl Into<String>) -> Self
The endpoint on which the Ethereum node listens to run Ethereum JSON-RPC methods over WebSocket connections from a client. Use this endpoint in client code for smart contracts when using a WebSocket connection. Connections to this endpoint are authenticated using Signature Version 4.
sourcepub fn set_web_socket_endpoint(self, input: Option<String>) -> Self
pub fn set_web_socket_endpoint(self, input: Option<String>) -> Self
The endpoint on which the Ethereum node listens to run Ethereum JSON-RPC methods over WebSocket connections from a client. Use this endpoint in client code for smart contracts when using a WebSocket connection. Connections to this endpoint are authenticated using Signature Version 4.
sourcepub fn get_web_socket_endpoint(&self) -> &Option<String>
pub fn get_web_socket_endpoint(&self) -> &Option<String>
The endpoint on which the Ethereum node listens to run Ethereum JSON-RPC methods over WebSocket connections from a client. Use this endpoint in client code for smart contracts when using a WebSocket connection. Connections to this endpoint are authenticated using Signature Version 4.
sourcepub fn build(self) -> NodeEthereumAttributes
pub fn build(self) -> NodeEthereumAttributes
Consumes the builder and constructs a NodeEthereumAttributes
.
Trait Implementations§
source§impl Clone for NodeEthereumAttributesBuilder
impl Clone for NodeEthereumAttributesBuilder
source§fn clone(&self) -> NodeEthereumAttributesBuilder
fn clone(&self) -> NodeEthereumAttributesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for NodeEthereumAttributesBuilder
impl Default for NodeEthereumAttributesBuilder
source§fn default() -> NodeEthereumAttributesBuilder
fn default() -> NodeEthereumAttributesBuilder
source§impl PartialEq for NodeEthereumAttributesBuilder
impl PartialEq for NodeEthereumAttributesBuilder
source§fn eq(&self, other: &NodeEthereumAttributesBuilder) -> bool
fn eq(&self, other: &NodeEthereumAttributesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.