#[repr(i32)]pub enum ProposalStatus {
Unspecified = 0,
DepositPeriod = 1,
VotingPeriod = 2,
Passed = 3,
Rejected = 4,
Failed = 5,
}
Expand description
ProposalStatus enumerates the valid statuses of a proposal.
Variants§
Unspecified = 0
PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status.
DepositPeriod = 1
PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit period.
VotingPeriod = 2
PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting period.
Passed = 3
PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has passed.
Rejected = 4
PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has been rejected.
Failed = 5
PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has failed.
Implementations§
Source§impl ProposalStatus
impl ProposalStatus
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ProposalStatus
impl Clone for ProposalStatus
Source§fn clone(&self) -> ProposalStatus
fn clone(&self) -> ProposalStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more