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