pub struct VotingPolicy {
pub approval_threshold_policy: Option<ApprovalThresholdPolicy>,
}
Expand description
The voting rules for the network to decide if a proposal is accepted
Applies only to Hyperledger Fabric.
Fields§
§approval_threshold_policy: 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.
Trait Implementations§
Source§impl Clone for VotingPolicy
impl Clone for VotingPolicy
Source§fn clone(&self) -> VotingPolicy
fn clone(&self) -> VotingPolicy
Returns a duplicate 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 Default for VotingPolicy
impl Default for VotingPolicy
Source§fn default() -> VotingPolicy
fn default() -> VotingPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VotingPolicy
impl<'de> Deserialize<'de> for VotingPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VotingPolicy
impl PartialEq for VotingPolicy
Source§impl Serialize for VotingPolicy
impl Serialize for VotingPolicy
impl StructuralPartialEq for VotingPolicy
Auto Trait Implementations§
impl Freeze for VotingPolicy
impl RefUnwindSafe for VotingPolicy
impl Send for VotingPolicy
impl Sync for VotingPolicy
impl Unpin for VotingPolicy
impl UnwindSafe for VotingPolicy
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
Mutably borrows from an owned value. Read more