#[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 ==
.impl StructuralPartialEq for NodeEthereumAttributes
Auto Trait Implementations§
impl Freeze for NodeEthereumAttributes
impl RefUnwindSafe for NodeEthereumAttributes
impl Send for NodeEthereumAttributes
impl Sync for NodeEthereumAttributes
impl Unpin for NodeEthereumAttributes
impl UnwindSafe for NodeEthereumAttributes
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
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>
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>
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