mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 11:07:56 +00:00
Add serde support for Slot type (#10204)
Add serde support for the `Slot` type as we'd like to use it directly in our RPC.
This commit is contained in:
@@ -24,6 +24,7 @@ use scale_info::TypeInfo;
|
||||
|
||||
/// Unit type wrapper that represents a slot.
|
||||
#[derive(Debug, Encode, MaxEncodedLen, Decode, Eq, Clone, Copy, Default, Ord, TypeInfo)]
|
||||
#[cfg_attr(feature = "std", derive(serde::Serialize, serde::Deserialize))]
|
||||
pub struct Slot(u64);
|
||||
|
||||
impl core::ops::Deref for Slot {
|
||||
|
||||
Reference in New Issue
Block a user