Enum dao::voting::voting_engine::voting_state_machine::VotingResult
source · pub enum VotingResult {
InFavor,
Against,
QuorumNotReached,
Canceled,
}
Expand description
Result of Voting.
Variants§
InFavor
Voting passed.
Against
Voting rejected.
QuorumNotReached
Too few VA’s voted.
Canceled
Voting canceled.
Trait Implementations§
source§impl BorshDeserialize for VotingResult
impl BorshDeserialize for VotingResult
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 VotingResult
impl BorshSerialize for VotingResult
source§impl Clone for VotingResult
impl Clone for VotingResult
source§fn clone(&self) -> VotingResult
fn clone(&self) -> VotingResult
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 VotingResult
impl Debug for VotingResult
source§impl PartialEq for VotingResult
impl PartialEq for VotingResult
source§fn eq(&self, other: &VotingResult) -> bool
fn eq(&self, other: &VotingResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VotingResult
impl StructuralPartialEq for VotingResult
Auto Trait Implementations§
impl RefUnwindSafe for VotingResult
impl Send for VotingResult
impl Sync for VotingResult
impl Unpin for VotingResult
impl UnwindSafe for VotingResult
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