#[non_exhaustive]pub enum ProposalStatus {
Draft {
timestamp: i64,
},
Active {
timestamp: i64,
},
Rejected {
timestamp: i64,
},
Approved {
timestamp: i64,
},
Executing,
Executed {
timestamp: i64,
},
Cancelled {
timestamp: i64,
},
}Expand description
The status of a proposal. Each variant wraps a timestamp of when the status was set.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Draft
Proposal is in the draft mode and can be voted on.
Active
Proposal is live and ready for voting.
Rejected
Proposal has been rejected.
Approved
Proposal has been approved and is pending execution.
Executing
👎Deprecated: This status used to be used to prevent reentrancy attacks. It is no longer needed.
Proposal is being executed. This is a transient state that always transitions to Executed in the span of a single transaction.
Executed
Proposal has been executed.
Cancelled
Proposal has been cancelled.
Trait Implementations§
source§impl BorshDeserialize for ProposalStatuswhere
i64: BorshDeserialize,
impl BorshDeserialize for ProposalStatuswhere i64: BorshDeserialize,
source§impl BorshSerialize for ProposalStatuswhere
i64: BorshSerialize,
impl BorshSerialize for ProposalStatuswhere i64: BorshSerialize,
source§impl Clone for ProposalStatus
impl Clone for ProposalStatus
source§fn clone(&self) -> ProposalStatus
fn clone(&self) -> ProposalStatus
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 ProposalStatus
impl Debug for ProposalStatus
source§impl PartialEq<ProposalStatus> for ProposalStatus
impl PartialEq<ProposalStatus> for ProposalStatus
source§fn eq(&self, other: &ProposalStatus) -> bool
fn eq(&self, other: &ProposalStatus) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ProposalStatus
impl StructuralEq for ProposalStatus
impl StructuralPartialEq for ProposalStatus
Auto Trait Implementations§
impl RefUnwindSafe for ProposalStatus
impl Send for ProposalStatus
impl Sync for ProposalStatus
impl Unpin for ProposalStatus
impl UnwindSafe for ProposalStatus
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.