#[non_exhaustive]pub struct NodeConfiguration {
pub instance_type: String,
pub availability_zone: Option<String>,
pub log_publishing_configuration: Option<NodeLogPublishingConfiguration>,
pub state_db: Option<StateDbType>,
}
Expand description
Configuration properties of a 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.instance_type: String
The Amazon Managed Blockchain instance type for the node.
availability_zone: Option<String>
The Availability Zone in which the node exists. Required for Ethereum nodes.
log_publishing_configuration: Option<NodeLogPublishingConfiguration>
Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on Managed Blockchain.
state_db: Option<StateDbType>
The state database that the node uses. Values are LevelDB
or CouchDB
. When using an Amazon Managed Blockchain network with Hyperledger Fabric version 1.4 or later, the default is CouchDB
.
Applies only to Hyperledger Fabric.
Implementations§
source§impl NodeConfiguration
impl NodeConfiguration
sourcepub fn instance_type(&self) -> &str
pub fn instance_type(&self) -> &str
The Amazon Managed Blockchain instance type for the node.
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Availability Zone in which the node exists. Required for Ethereum nodes.
sourcepub fn log_publishing_configuration(
&self
) -> Option<&NodeLogPublishingConfiguration>
pub fn log_publishing_configuration( &self ) -> Option<&NodeLogPublishingConfiguration>
Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on Managed Blockchain.
sourcepub fn state_db(&self) -> Option<&StateDbType>
pub fn state_db(&self) -> Option<&StateDbType>
The state database that the node uses. Values are LevelDB
or CouchDB
. When using an Amazon Managed Blockchain network with Hyperledger Fabric version 1.4 or later, the default is CouchDB
.
Applies only to Hyperledger Fabric.
source§impl NodeConfiguration
impl NodeConfiguration
sourcepub fn builder() -> NodeConfigurationBuilder
pub fn builder() -> NodeConfigurationBuilder
Creates a new builder-style object to manufacture NodeConfiguration
.
Trait Implementations§
source§impl Clone for NodeConfiguration
impl Clone for NodeConfiguration
source§fn clone(&self) -> NodeConfiguration
fn clone(&self) -> NodeConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NodeConfiguration
impl Debug for NodeConfiguration
source§impl PartialEq for NodeConfiguration
impl PartialEq for NodeConfiguration
source§fn eq(&self, other: &NodeConfiguration) -> bool
fn eq(&self, other: &NodeConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.