#[non_exhaustive]pub struct NodeEthereumAttributes {
pub http_endpoint: Option<String>,
pub web_socket_endpoint: Option<String>,
}
Expand description
Attributes of an Ethereum node.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.http_endpoint: 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.
web_socket_endpoint: 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.
Implementations§
source§impl NodeEthereumAttributes
impl NodeEthereumAttributes
sourcepub fn http_endpoint(&self) -> Option<&str>
pub fn http_endpoint(&self) -> Option<&str>
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) -> Option<&str>
pub fn web_socket_endpoint(&self) -> Option<&str>
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.
source§impl NodeEthereumAttributes
impl NodeEthereumAttributes
sourcepub fn builder() -> NodeEthereumAttributesBuilder
pub fn builder() -> NodeEthereumAttributesBuilder
Creates a new builder-style object to manufacture NodeEthereumAttributes
.
Trait Implementations§
source§impl Clone for NodeEthereumAttributes
impl Clone for NodeEthereumAttributes
source§fn clone(&self) -> NodeEthereumAttributes
fn clone(&self) -> NodeEthereumAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NodeEthereumAttributes
impl Debug for NodeEthereumAttributes
source§impl PartialEq for NodeEthereumAttributes
impl PartialEq for NodeEthereumAttributes
source§fn eq(&self, other: &NodeEthereumAttributes) -> bool
fn eq(&self, other: &NodeEthereumAttributes) -> bool
self
and other
values to be equal, and is used
by ==
.