pub enum ProposalStage {
Proposed,
Accepted,
Rejected,
Invalid,
}
Expand description
Represents the stage of a proposal. Proposals can only ever change stage once, from Proposed
to another stage. All other stages are final, and any subsequent changes should be considered
a bug.
Variants§
Trait Implementations§
Source§impl Clone for ProposalStage
impl Clone for ProposalStage
Source§fn clone(&self) -> ProposalStage
fn clone(&self) -> ProposalStage
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 ProposalStage
impl Debug for ProposalStage
Source§impl Default for ProposalStage
impl Default for ProposalStage
Source§fn default() -> ProposalStage
fn default() -> ProposalStage
Returns the “default value” for a type. Read more
Source§impl PartialEq for ProposalStage
impl PartialEq for ProposalStage
Source§impl TryFrom<ProposalStatus> for ProposalStage
impl TryFrom<ProposalStatus> for ProposalStage
Source§type Error = XandApiProtoErrs
type Error = XandApiProtoErrs
The type returned in the event of a conversion error.
Source§fn try_from(
status: ProposalStatus,
) -> Result<ProposalStage, <ProposalStage as TryFrom<ProposalStatus>>::Error>
fn try_from( status: ProposalStatus, ) -> Result<ProposalStage, <ProposalStage as TryFrom<ProposalStatus>>::Error>
Performs the conversion.
impl Eq for ProposalStage
impl StructuralPartialEq for ProposalStage
Auto Trait Implementations§
impl Freeze for ProposalStage
impl RefUnwindSafe for ProposalStage
impl Send for ProposalStage
impl Sync for ProposalStage
impl Unpin for ProposalStage
impl UnwindSafe for ProposalStage
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> 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