mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 13:21:10 +00:00
add TypeInfo for DispatchTime (#9987)
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
//! Traits and associated utilities for scheduling dispatchables in FRAME.
|
//! Traits and associated utilities for scheduling dispatchables in FRAME.
|
||||||
|
|
||||||
use codec::{Codec, Decode, Encode, EncodeLike};
|
use codec::{Codec, Decode, Encode, EncodeLike};
|
||||||
|
use scale_info::TypeInfo;
|
||||||
use sp_runtime::{DispatchError, RuntimeDebug};
|
use sp_runtime::{DispatchError, RuntimeDebug};
|
||||||
use sp_std::{fmt::Debug, prelude::*};
|
use sp_std::{fmt::Debug, prelude::*};
|
||||||
|
|
||||||
@@ -31,7 +32,7 @@ pub type Period<BlockNumber> = (BlockNumber, u32);
|
|||||||
pub type Priority = u8;
|
pub type Priority = u8;
|
||||||
|
|
||||||
/// The dispatch time of a scheduled task.
|
/// The dispatch time of a scheduled task.
|
||||||
#[derive(Encode, Decode, Copy, Clone, PartialEq, Eq, RuntimeDebug)]
|
#[derive(Encode, Decode, Copy, Clone, PartialEq, Eq, RuntimeDebug, TypeInfo)]
|
||||||
pub enum DispatchTime<BlockNumber> {
|
pub enum DispatchTime<BlockNumber> {
|
||||||
/// At specified block.
|
/// At specified block.
|
||||||
At(BlockNumber),
|
At(BlockNumber),
|
||||||
|
|||||||
Reference in New Issue
Block a user