Struct wallet_core::Proposal
source · pub struct Proposal {
vote_plan_id: VotePlanId,
index: u8,
options: Options,
payload_type: PayloadTypeConfig,
}
Fields§
§vote_plan_id: VotePlanId
§index: u8
§options: Options
§payload_type: PayloadTypeConfig
Implementations§
source§impl Proposal
impl Proposal
pub fn new( vote_plan_id: VotePlanId, index: u8, options: Options, payload_type: PayloadTypeConfig ) -> Self
pub fn new_public(vote_plan_id: VotePlanId, index: u8, options: Options) -> Self
pub fn new_private( vote_plan_id: VotePlanId, index: u8, options: Options, key: ElectionPublicKey ) -> Self
pub fn vote(&self, choice: Choice) -> Option<VoteCast>
Auto Trait Implementations§
impl RefUnwindSafe for Proposal
impl Send for Proposal
impl Sync for Proposal
impl Unpin for Proposal
impl UnwindSafe for Proposal
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