pub struct UpdateProposalData {
pub leaders: HashMap<BftLeaderId, SecretKey<Ed25519>>,
pub voters: HashMap<BftLeaderId, SecretKey<Ed25519>>,
pub proposal: UpdateProposal,
pub block_signing_key: SecretKey<Ed25519>,
}
Fields§
§leaders: HashMap<BftLeaderId, SecretKey<Ed25519>>
§voters: HashMap<BftLeaderId, SecretKey<Ed25519>>
§proposal: UpdateProposal
§block_signing_key: SecretKey<Ed25519>
Implementations§
source§impl UpdateProposalData
impl UpdateProposalData
pub fn leaders_ids(&self) -> Vec<BftLeaderId>
pub fn leaders_pairs(&self) -> Vec<LeaderPair>
pub fn proposal_settings(&self) -> ConfigParams
pub fn gen_votes(&self, proposal_id: UpdateProposalId) -> Vec<UpdateVote>
Trait Implementations§
source§impl Arbitrary for UpdateProposalData
impl Arbitrary for UpdateProposalData
source§impl Clone for UpdateProposalData
impl Clone for UpdateProposalData
source§fn clone(&self) -> UpdateProposalData
fn clone(&self) -> UpdateProposalData
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 moreAuto Trait Implementations§
impl RefUnwindSafe for UpdateProposalData
impl Send for UpdateProposalData
impl Sync for UpdateProposalData
impl Unpin for UpdateProposalData
impl UnwindSafe for UpdateProposalData
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