Enum diem_sdk::types::transaction::GovernanceRole
pub enum GovernanceRole {
DiemRoot,
TreasuryCompliance,
Validator,
ValidatorOperator,
DesignatedDealer,
NonGovernanceRole,
}
Variants§
Implementations§
§impl GovernanceRole
impl GovernanceRole
pub fn from_role_id(role_id: u64) -> GovernanceRole
pub 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§
§impl Clone for GovernanceRole
impl Clone for GovernanceRole
§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 more§impl Debug for GovernanceRole
impl Debug for GovernanceRole
§impl Hash for GovernanceRole
impl Hash for GovernanceRole
§impl Ord for GovernanceRole
impl Ord for GovernanceRole
§impl PartialEq<GovernanceRole> for GovernanceRole
impl PartialEq<GovernanceRole> for GovernanceRole
§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 ==
.§impl PartialOrd<GovernanceRole> for GovernanceRole
impl PartialOrd<GovernanceRole> for GovernanceRole
§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.