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