mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 01:11:10 +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.
|
/// 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);
|
pub struct SlotDuration(u64);
|
||||||
|
|
||||||
impl SlotDuration {
|
impl SlotDuration {
|
||||||
|
|||||||
Reference in New Issue
Block a user