mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 11:07:56 +00:00
Derive MaxEncodedLen on SlotDuration (#2484)
# Description Needed this in my code as part of the larger data structure. --------- Co-authored-by: command-bot <>
This commit is contained in:
@@ -121,7 +121,20 @@ impl From<Slot> for u64 {
|
||||
}
|
||||
|
||||
/// A slot duration defined in milliseconds.
|
||||
#[derive(Clone, Copy, Debug, Encode, Decode, Hash, PartialOrd, Ord, PartialEq, Eq, TypeInfo)]
|
||||
#[derive(
|
||||
Clone,
|
||||
Copy,
|
||||
Debug,
|
||||
Encode,
|
||||
Decode,
|
||||
MaxEncodedLen,
|
||||
Hash,
|
||||
PartialOrd,
|
||||
Ord,
|
||||
PartialEq,
|
||||
Eq,
|
||||
TypeInfo,
|
||||
)]
|
||||
pub struct SlotDuration(u64);
|
||||
|
||||
impl SlotDuration {
|
||||
|
||||
Reference in New Issue
Block a user