Enum dao::voting::voting_engine::voting_state_machine::VotingState
source · pub enum VotingState {
Created,
Informal,
BetweenVotings,
Formal,
Finished,
Canceled,
}
Expand description
State of Voting.
Variants§
Created
Voting created but informal voting is not started.
Informal
Informal voting started.
BetweenVotings
Informal voting ended, but the formal one hasn’t started yet.
Formal
Formal voting started.
Finished
Formal voting ended.
Canceled
The voting interrupted.
Trait Implementations§
source§impl BorshDeserialize for VotingState
impl BorshDeserialize for VotingState
source§fn deserialize(buf: &mut &[u8]) -> Result<Self>
fn deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
source§impl BorshSerialize for VotingState
impl BorshSerialize for VotingState
source§impl Clone for VotingState
impl Clone for VotingState
source§fn clone(&self) -> VotingState
fn clone(&self) -> VotingState
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 VotingState
impl Debug for VotingState
source§impl PartialEq for VotingState
impl PartialEq for VotingState
source§fn eq(&self, other: &VotingState) -> bool
fn eq(&self, other: &VotingState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VotingState
impl StructuralPartialEq for VotingState
Auto Trait Implementations§
impl RefUnwindSafe for VotingState
impl Send for VotingState
impl Sync for VotingState
impl Unpin for VotingState
impl UnwindSafe for VotingState
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