Enum nnsdao_sdk_basic::ProposalState
source · [−]pub enum ProposalState {
Open,
Accepted,
Rejected,
Executing,
Succeeded,
Failed(String),
}
Expand description
The state of a Proposal
Variants
Open
The proposal is open for voting
Accepted
Enough “yes” votes have been cast to accept the proposal, and it will soon be executed
Rejected
Enough “no” votes have been cast to reject the proposal, and it will not be executed
Executing
The proposal is currently being executed
Succeeded
The proposal has been successfully executed
Failed(String)
A failure occurred while executing the proposal
Trait Implementations
sourceimpl CandidType for ProposalState
impl CandidType for ProposalState
sourceimpl Clone for ProposalState
impl Clone for ProposalState
sourcefn clone(&self) -> ProposalState
fn clone(&self) -> ProposalState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ProposalState
impl Debug for ProposalState
sourceimpl<'de> Deserialize<'de> for ProposalState
impl<'de> Deserialize<'de> for ProposalState
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ProposalState> for ProposalState
impl PartialEq<ProposalState> for ProposalState
sourcefn eq(&self, other: &ProposalState) -> bool
fn eq(&self, other: &ProposalState) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ProposalState) -> bool
fn ne(&self, other: &ProposalState) -> bool
This method tests for !=
.
sourceimpl Serialize for ProposalState
impl Serialize for ProposalState
impl Eq for ProposalState
impl StructuralEq for ProposalState
impl StructuralPartialEq for ProposalState
Auto Trait Implementations
impl RefUnwindSafe for ProposalState
impl Send for ProposalState
impl Sync for ProposalState
impl Unpin for ProposalState
impl UnwindSafe for ProposalState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more