Struct diem_types::on_chain_config::ConfigID
source · pub struct ConfigID(_, _);
Expand description
To register an on-chain config in Rust:
- Implement the
OnChainConfig
trait for the Rust representation of the config - Add the config’s
ConfigID
toON_CHAIN_CONFIG_REGISTRY
Implementations§
source§impl ConfigID
impl ConfigID
pub fn access_path(self) -> AccessPath
Trait Implementations§
source§impl PartialEq<ConfigID> for ConfigID
impl PartialEq<ConfigID> for ConfigID
impl Copy for ConfigID
impl Eq for ConfigID
impl StructuralEq for ConfigID
impl StructuralPartialEq for ConfigID
Auto Trait Implementations§
impl RefUnwindSafe for ConfigID
impl Send for ConfigID
impl Sync for ConfigID
impl Unpin for ConfigID
impl UnwindSafe for ConfigID
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.