Struct chain_impl_mockchain::testing::scenario::template::builders::VotePlanDefBuilder
source · pub struct VotePlanDefBuilder {
alias: String,
owner_alias: Option<String>,
payload_type: PayloadType,
vote_date: Option<BlockDate>,
tally_date: Option<BlockDate>,
end_tally_date: Option<BlockDate>,
committee_keys: Vec<MemberPublicKey>,
proposals: Vec<ProposalDef>,
voting_token: TokenIdentifier,
}
Fields§
§alias: String
§owner_alias: Option<String>
§payload_type: PayloadType
§vote_date: Option<BlockDate>
§tally_date: Option<BlockDate>
§end_tally_date: Option<BlockDate>
§committee_keys: Vec<MemberPublicKey>
§proposals: Vec<ProposalDef>
§voting_token: TokenIdentifier
Implementations§
source§impl VotePlanDefBuilder
impl VotePlanDefBuilder
pub fn new(alias: &str) -> Self
pub fn owner(&mut self, owner_alias: &str) -> &mut Self
pub fn payload_type(&mut self, payload_type: PayloadType) -> &mut Self
pub fn committee_keys( &mut self, committee_keys: Vec<MemberPublicKey> ) -> &mut Self
pub fn vote_phases( &mut self, start_epoch: u32, tally_epoch: u32, end_epoch: u32 ) -> &mut Self
pub fn consecutive_epoch_dates(&mut self) -> &mut Self
pub fn with_proposal( &mut self, proposal_builder: &mut ProposalDefBuilder ) -> &mut Self
pub fn voting_token(&mut self, token: TokenIdentifier) -> &mut Self
pub fn build(self) -> VotePlanDef
Trait Implementations§
source§impl Clone for VotePlanDefBuilder
impl Clone for VotePlanDefBuilder
source§fn clone(&self) -> VotePlanDefBuilder
fn clone(&self) -> VotePlanDefBuilder
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 VotePlanDefBuilder
impl Send for VotePlanDefBuilder
impl Sync for VotePlanDefBuilder
impl Unpin for VotePlanDefBuilder
impl UnwindSafe for VotePlanDefBuilder
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