Struct aws_sdk_managedblockchain::types::VotingPolicy
source · #[non_exhaustive]pub struct VotingPolicy { /* private fields */ }
Expand description
The voting rules for the network to decide if a proposal is accepted
Applies only to Hyperledger Fabric.
Implementations§
source§impl VotingPolicy
impl VotingPolicy
sourcepub fn approval_threshold_policy(&self) -> Option<&ApprovalThresholdPolicy>
pub fn approval_threshold_policy(&self) -> Option<&ApprovalThresholdPolicy>
Defines the rules for the network for voting on proposals, such as the percentage of YES
votes required for the proposal to be approved and the duration of the proposal. The policy applies to all proposals and is specified when the network is created.
source§impl VotingPolicy
impl VotingPolicy
sourcepub fn builder() -> VotingPolicyBuilder
pub fn builder() -> VotingPolicyBuilder
Creates a new builder-style object to manufacture VotingPolicy
.
Trait Implementations§
source§impl Clone for VotingPolicy
impl Clone for VotingPolicy
source§fn clone(&self) -> VotingPolicy
fn clone(&self) -> VotingPolicy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VotingPolicy
impl Debug for VotingPolicy
source§impl PartialEq<VotingPolicy> for VotingPolicy
impl PartialEq<VotingPolicy> for VotingPolicy
source§fn eq(&self, other: &VotingPolicy) -> bool
fn eq(&self, other: &VotingPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.