Struct chain_impl_mockchain::testing::scenario::template::VotePlanDef
source · pub struct VotePlanDef {
alias: String,
owner_alias: String,
payload_type: PayloadType,
vote_date: BlockDate,
tally_date: BlockDate,
end_tally_date: BlockDate,
committee_keys: Vec<MemberPublicKey>,
proposals: Vec<ProposalDef>,
voting_token: TokenIdentifier,
}
Fields§
§alias: String
§owner_alias: String
§payload_type: PayloadType
§vote_date: BlockDate
§tally_date: BlockDate
§end_tally_date: BlockDate
§committee_keys: Vec<MemberPublicKey>
§proposals: Vec<ProposalDef>
§voting_token: TokenIdentifier
Implementations§
source§impl VotePlanDef
impl VotePlanDef
pub fn alias(&self) -> String
pub fn owner(&self) -> String
pub fn proposals(&self) -> Vec<ProposalDef>
pub fn proposal(&self, index: usize) -> ProposalDef
pub fn id(&self) -> String
pub fn committee_keys(&self) -> Vec<MemberPublicKey>
pub fn committee_keys_mut(&mut self) -> &mut Vec<MemberPublicKey>
pub fn from_vote_plan<S: Into<String>>( alias: S, owner_alias: Option<S>, vote_plan: &VotePlan ) -> VotePlanDef
Trait Implementations§
source§impl Clone for VotePlanDef
impl Clone for VotePlanDef
source§fn clone(&self) -> VotePlanDef
fn clone(&self) -> VotePlanDef
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 VotePlanDef
impl Debug for VotePlanDef
source§impl From<VotePlanDef> for VotePlan
impl From<VotePlanDef> for VotePlan
source§fn from(dto: VotePlanDef) -> Self
fn from(dto: VotePlanDef) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for VotePlanDef
impl Send for VotePlanDef
impl Sync for VotePlanDef
impl Unpin for VotePlanDef
impl UnwindSafe for VotePlanDef
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