pub struct RoleKey { /* private fields */ }
Expand description
The key of a Role.
Implementations§
Source§impl RoleKey
impl RoleKey
Sourcepub const ORACLE_CONTROLLER: &'static str = "ORACLE_CONTROLLER"
pub const ORACLE_CONTROLLER: &'static str = "ORACLE_CONTROLLER"
Oracle Controller.
Sourcepub const GT_CONTROLLER: &'static str = "GT_CONTROLLER"
pub const GT_CONTROLLER: &'static str = "GT_CONTROLLER"
GT Controller.
Sourcepub const MARKET_KEEPER: &'static str = "MARKET_KEEPER"
pub const MARKET_KEEPER: &'static str = "MARKET_KEEPER"
Market Keeper.
Sourcepub const ORDER_KEEPER: &'static str = "ORDER_KEEPER"
pub const ORDER_KEEPER: &'static str = "ORDER_KEEPER"
Order Keeper.
Sourcepub const FEATURE_KEEPER: &'static str = "FEATURE_KEEPER"
pub const FEATURE_KEEPER: &'static str = "FEATURE_KEEPER"
Feature Keeper.
Sourcepub const CONFIG_KEEPER: &'static str = "CONFIG_KEEPER"
pub const CONFIG_KEEPER: &'static str = "CONFIG_KEEPER"
Config Keeper.
Sourcepub const RESTART_ADMIN: &'static str = "RESTART_ADMIN"
pub const RESTART_ADMIN: &'static str = "RESTART_ADMIN"
Restart Admin. When the cluster restarts, this role can be used for any role, including ADMIN.“
Sourcepub const PRICE_KEEPER: &'static str = "PRICE_KEEPER"
pub const PRICE_KEEPER: &'static str = "PRICE_KEEPER"
Price Keeper.
Sourcepub const MIGRATION_KEEPER: &'static str = "MIGRATION_KEEPER"
pub const MIGRATION_KEEPER: &'static str = "MIGRATION_KEEPER"
Migration Keeper.
Trait Implementations§
Source§impl BorshDeserialize for RoleKeywhere
String: BorshDeserialize,
impl BorshDeserialize for RoleKeywhere
String: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
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.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl Ord for RoleKey
impl Ord for RoleKey
Source§impl PartialOrd for RoleKey
impl PartialOrd for RoleKey
impl Eq for RoleKey
impl StructuralPartialEq for RoleKey
Auto Trait Implementations§
impl Freeze for RoleKey
impl RefUnwindSafe for RoleKey
impl Send for RoleKey
impl Sync for RoleKey
impl Unpin for RoleKey
impl UnwindSafe for RoleKey
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more