#[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 propopsal 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§
Trait Implementations§
Source§impl Clone for ProposalStatus
impl Clone for ProposalStatus
Source§fn clone(&self) -> ProposalStatus
fn clone(&self) -> ProposalStatus
Returns a duplicate 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 Default for ProposalStatus
impl Default for ProposalStatus
Source§fn default() -> ProposalStatus
fn default() -> ProposalStatus
Returns the “default value” for a type. Read more
Source§impl Hash for ProposalStatus
impl Hash for ProposalStatus
Source§impl Ord for ProposalStatus
impl Ord for ProposalStatus
Source§fn cmp(&self, other: &ProposalStatus) -> Ordering
fn cmp(&self, other: &ProposalStatus) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProposalStatus
impl PartialEq for ProposalStatus
Source§impl PartialOrd for ProposalStatus
impl PartialOrd for ProposalStatus
impl Copy for ProposalStatus
impl Eq for ProposalStatus
impl StructuralPartialEq for ProposalStatus
Auto Trait Implementations§
impl Freeze for ProposalStatus
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request