mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 23:21:06 +00:00
config: Add Debug Clone for common configs (#1542)
* config: Add Debug Clone for common configs Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Add copy impl Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Add other traits Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> --------- Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -11,6 +11,9 @@ pub use crate::utils::{AccountId32, MultiAddress, MultiSignature};
|
|||||||
pub use primitive_types::{H256, U256};
|
pub use primitive_types::{H256, U256};
|
||||||
|
|
||||||
/// Default set of commonly used types by Polkadot nodes.
|
/// Default set of commonly used types by Polkadot nodes.
|
||||||
|
// Note: The trait implementations exist just to make life easier,
|
||||||
|
// but shouldn't strictly be necessary since users can't instantiate this type.
|
||||||
|
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)]
|
||||||
pub enum PolkadotConfig {}
|
pub enum PolkadotConfig {}
|
||||||
|
|
||||||
impl Config for PolkadotConfig {
|
impl Config for PolkadotConfig {
|
||||||
|
|||||||
@@ -16,6 +16,9 @@ pub use primitive_types::{H256, U256};
|
|||||||
/// Default set of commonly used types by Substrate runtimes.
|
/// Default set of commonly used types by Substrate runtimes.
|
||||||
// Note: We only use this at the type level, so it should be impossible to
|
// Note: We only use this at the type level, so it should be impossible to
|
||||||
// create an instance of it.
|
// create an instance of it.
|
||||||
|
// The trait implementations exist just to make life easier,
|
||||||
|
// but shouldn't strictly be necessary since users can't instantiate this type.
|
||||||
|
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)]
|
||||||
pub enum SubstrateConfig {}
|
pub enum SubstrateConfig {}
|
||||||
|
|
||||||
impl Config for SubstrateConfig {
|
impl Config for SubstrateConfig {
|
||||||
|
|||||||
Reference in New Issue
Block a user