Struct chain_impl_mockchain::testing::VoteTestGen
source · pub struct VoteTestGen;
Implementations§
source§impl VoteTestGen
impl VoteTestGen
pub fn proposal_with_action(vote_action: VoteAction) -> Proposal
pub fn proposal() -> Proposal
pub fn proposals(count: usize) -> Proposals
pub fn proposals_with_action(vote_action: VoteAction, count: usize) -> Proposals
pub fn external_proposal_id() -> ExternalProposalId
pub fn vote_cast() -> VoteCast
pub fn vote_tally() -> VoteTally
pub fn vote_plan() -> VotePlan
pub fn committee_members_manager( members_no: usize, threshold: usize ) -> CommitteeMembersManager
pub fn private_vote_plan() -> VotePlan
pub fn private_vote_plan_with_committees_manager( manager: &CommitteeMembersManager ) -> VotePlan
pub fn vote_plan_with_proposals(count: usize) -> VotePlan
pub fn vote_cast_payload_for(choice: &Choice) -> Payload
pub fn private_vote_cast_payload_for<R: RngCore + CryptoRng>( vote_plan: &VotePlan, proposal: &Proposal, choice: Choice, rng: &mut R ) -> Payload
pub fn vote_cast_payload() -> Payload
pub fn vote_cast_for(vote_plan: &VotePlan) -> VoteCast
pub fn treasury_governance() -> TreasuryGovernance
pub fn parameters_governance() -> ParametersGovernance
Auto Trait Implementations§
impl RefUnwindSafe for VoteTestGen
impl Send for VoteTestGen
impl Sync for VoteTestGen
impl Unpin for VoteTestGen
impl UnwindSafe for VoteTestGen
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