Enum boot_core::cosmos_modules::gov::ProposalStatus
pub enum ProposalStatus {
Unspecified,
DepositPeriod,
VotingPeriod,
Passed,
Rejected,
Failed,
}Expand description
ProposalStatus enumerates the valid statuses of a proposal.
Variants
Unspecified
PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status.
DepositPeriod
PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit period.
VotingPeriod
PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting period.
Passed
PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has passed.
Rejected
PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has been rejected.
Failed
PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has failed.
Implementations
impl ProposalStatus
impl ProposalStatus
impl ProposalStatus
impl ProposalStatus
pub 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.
Trait Implementations
impl Clone for ProposalStatus
impl Clone for ProposalStatus
fn clone(&self) -> ProposalStatus
fn clone(&self) -> ProposalStatus
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Debug for ProposalStatus
impl Debug for ProposalStatus
impl Default for ProposalStatus
impl Default for ProposalStatus
fn default() -> ProposalStatus
fn default() -> ProposalStatus
impl Hash for ProposalStatus
impl Hash for ProposalStatus
impl Ord for ProposalStatus
impl Ord for ProposalStatus
fn cmp(&self, other: &ProposalStatus) -> Ordering
fn cmp(&self, other: &ProposalStatus) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
impl PartialEq<ProposalStatus> for ProposalStatus
impl PartialEq<ProposalStatus> for ProposalStatus
fn eq(&self, other: &ProposalStatus) -> bool
fn eq(&self, other: &ProposalStatus) -> bool
impl PartialOrd<ProposalStatus> for ProposalStatus
impl PartialOrd<ProposalStatus> for ProposalStatus
fn partial_cmp(&self, other: &ProposalStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &ProposalStatus) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moreimpl Copy for ProposalStatus
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request