pub enum Reason {
InformalFinished = 1,
FormalFinished = 2,
FormalWon = 3,
FormalLost = 4,
}
Expand description
Represents an explanation for a particular action (mint, burn, stake).
Variants§
InformalFinished = 1
Informal voting finished.
FormalFinished = 2
Voting process finished.
FormalWon = 3
Voting process finished, voters voted in favor.
FormalLost = 4
Voting process finished, voters voted against.
Trait Implementations§
source§impl BorshDeserialize for Reason
impl BorshDeserialize for Reason
source§fn deserialize(buf: &mut &[u8]) -> Result<Self>
fn deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
source§impl Ord for Reason
impl Ord for Reason
source§impl PartialEq for Reason
impl PartialEq for Reason
source§impl PartialOrd for Reason
impl PartialOrd for Reason
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Reason
impl Eq for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnwindSafe for Reason
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