Enum spl_governance::state::enums::ProposalState
source · [−]#[repr(C)]
pub enum ProposalState {
Draft,
SigningOff,
Voting,
Succeeded,
Executing,
Completed,
Cancelled,
Defeated,
ExecutingWithErrors,
}
Expand description
What state a Proposal is in
Variants
Draft
Draft - Proposal enters Draft state when it’s created
SigningOff
SigningOff - The Proposal is being signed off by Signatories Proposal enters the state when first Signatory Sings and leaves it when last Signatory signs
Voting
Taking votes
Succeeded
Voting ended with success
Executing
Voting on Proposal succeeded and now instructions are being executed Proposal enter this state when first instruction is executed and leaves when the last instruction is executed
Completed
Completed
Cancelled
Cancelled
Defeated
Defeated
ExecutingWithErrors
Same as Executing but indicates some instructions failed to execute Proposal can’t be transitioned from ExecutingWithErrors to Completed state
Trait Implementations
sourceimpl BorshDeserialize for ProposalState
impl BorshDeserialize for ProposalState
sourceimpl BorshSchema for ProposalState
impl BorshSchema for ProposalState
sourcefn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
sourcefn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
fn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
Recursively, using DFS, add type definitions required for this type. For primitive types this is an empty map. Type definition explains how to serialize/deserialize a type. Read more
sourcefn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
Helper method to add a single type definition to the map.
fn schema_container() -> BorshSchemaContainer
sourceimpl BorshSerialize for ProposalState
impl BorshSerialize 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 Default for ProposalState
impl Default for ProposalState
sourceimpl PartialEq<ProposalState> for ProposalState
impl PartialEq<ProposalState> 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
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more