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.
Sourcepub const MARKET_CONFIG_KEEPER: &'static str = "MARKET_CONFIG_KEEPER"
pub const MARKET_CONFIG_KEEPER: &'static str = "MARKET_CONFIG_KEEPER"
Addresses with this role can update the restricted list’s market config.
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>
Source§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.
Source§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 BorshSerialize for RoleKeywhere
String: BorshSerialize,
impl BorshSerialize for RoleKeywhere
String: BorshSerialize,
Source§impl IdlBuild for RoleKey
impl IdlBuild for RoleKey
Source§fn create_type() -> Option<IdlTypeDef>
fn create_type() -> Option<IdlTypeDef>
Create an IDL type definition for the type. Read more
Source§fn insert_types(types: &mut BTreeMap<String, IdlTypeDef>)
fn insert_types(types: &mut BTreeMap<String, IdlTypeDef>)
Insert all types that are included in the current type definition to the given map.
Source§fn get_full_path() -> String
fn get_full_path() -> String
Get the full module path of the type. Read more
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