#[repr(u8)]pub enum SystemDataContract {
Withdrawals = 0,
MasternodeRewards = 1,
FeatureFlags = 2,
DPNS = 3,
Dashpay = 4,
WalletUtils = 5,
TokenHistory = 6,
KeywordSearch = 7,
DocumentHistory = 8,
AppConnect = 9,
ModerationCharters = 10,
}Variants§
Withdrawals = 0
MasternodeRewards = 1
FeatureFlags = 2
Reserved slot — the feature-flags contract was never deployed at genesis
and its implementation has been removed. The discriminant 2 is kept to
preserve the stable numbering of subsequent variants.
DPNS = 3
Dashpay = 4
WalletUtils = 5
TokenHistory = 6
KeywordSearch = 7
DocumentHistory = 8
AppConnect = 9
ModerationCharters = 10
The charters of elected moderation teams (protocol version 14). Registered from protocol version 14 on: registered at genesis by chains born at 14 and inserted by the upgrade to 14.
Implementations§
Source§impl SystemDataContract
impl SystemDataContract
Sourcepub const ALL: [SystemDataContract; 11]
pub const ALL: [SystemDataContract; 11]
Every system data contract, including the reserved FeatureFlags slot.
Deliberately kept beside the enum so that adding a variant and adding it here are the
same edit. assert_every_variant_is_listed below makes that mechanical rather than
remembered: a new variant makes its match non-exhaustive and the crate stops compiling.
Sourcepub fn id(&self) -> Identifier
pub fn id(&self) -> Identifier
A new variant must also be added to SystemDataContract::ALL; this match is where the
compiler stops you, but it cannot check that list for you.
Sourcepub fn source(
self,
platform_version: &PlatformVersion,
) -> Result<DataContractSource, Error>
pub fn source( self, platform_version: &PlatformVersion, ) -> Result<DataContractSource, Error>
Returns DataContractSource
Trait Implementations§
Source§impl Clone for SystemDataContract
impl Clone for SystemDataContract
Source§fn clone(&self) -> SystemDataContract
fn clone(&self) -> SystemDataContract
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SystemDataContract
Source§impl Debug for SystemDataContract
impl Debug for SystemDataContract
impl Eq for SystemDataContract
Source§impl Hash for SystemDataContract
impl Hash for SystemDataContract
Source§impl Ord for SystemDataContract
impl Ord for SystemDataContract
Source§fn cmp(&self, other: &SystemDataContract) -> Ordering
fn cmp(&self, other: &SystemDataContract) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SystemDataContract
impl PartialEq for SystemDataContract
Source§impl PartialOrd for SystemDataContract
impl PartialOrd for SystemDataContract
impl StructuralPartialEq for SystemDataContract
Auto Trait Implementations§
impl Freeze for SystemDataContract
impl RefUnwindSafe for SystemDataContract
impl Send for SystemDataContract
impl Sync for SystemDataContract
impl Unpin for SystemDataContract
impl UnsafeUnpin for SystemDataContract
impl UnwindSafe for SystemDataContract
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
§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
key and return true if they are equal.