Enum diem_types::transaction::GovernanceRole
source · pub enum GovernanceRole {
DiemRoot,
TreasuryCompliance,
Validator,
ValidatorOperator,
DesignatedDealer,
NonGovernanceRole,
}
Variants§
Implementations§
source§impl GovernanceRole
impl GovernanceRole
pub fn from_role_id(role_id: u64) -> Self
sourcepub fn priority(&self) -> u64
pub fn priority(&self) -> u64
The higher the number that is returned, the greater priority assigned to a transaction sent from an account with that role in mempool. All transactions sent from an account with role priority N are ranked higher than all transactions sent from accounts with role priorities < N. Transactions from accounts with equal priority are ranked base on other characteristics (e.g., gas price).
Trait Implementations§
source§impl Clone for GovernanceRole
impl Clone for GovernanceRole
source§fn clone(&self) -> GovernanceRole
fn clone(&self) -> GovernanceRole
Returns a copy 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 GovernanceRole
impl Debug for GovernanceRole
source§impl Hash for GovernanceRole
impl Hash for GovernanceRole
source§impl Ord for GovernanceRole
impl Ord for GovernanceRole
source§fn cmp(&self, other: &GovernanceRole) -> Ordering
fn cmp(&self, other: &GovernanceRole) -> 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<GovernanceRole> for GovernanceRole
impl PartialEq<GovernanceRole> for GovernanceRole
source§fn eq(&self, other: &GovernanceRole) -> bool
fn eq(&self, other: &GovernanceRole) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<GovernanceRole> for GovernanceRole
impl PartialOrd<GovernanceRole> for GovernanceRole
source§fn partial_cmp(&self, other: &GovernanceRole) -> Option<Ordering>
fn partial_cmp(&self, other: &GovernanceRole) -> Option<Ordering>
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 GovernanceRole
impl Eq for GovernanceRole
impl StructuralEq for GovernanceRole
impl StructuralPartialEq for GovernanceRole
Auto Trait Implementations§
impl RefUnwindSafe for GovernanceRole
impl Send for GovernanceRole
impl Sync for GovernanceRole
impl Unpin for GovernanceRole
impl UnwindSafe for GovernanceRole
Blanket Implementations§
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.