From 2f35d7f003f571ef1a7c496e061e32d0c9091d9b Mon Sep 17 00:00:00 2001 From: thiolliere <gui.thiolliere@gmail.com> Date: Thu, 28 Nov 2019 11:06:06 +0100 Subject: [PATCH] improve doc (#4239) --- substrate/frame/support/src/dispatch.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/substrate/frame/support/src/dispatch.rs b/substrate/frame/support/src/dispatch.rs index cde1300831d..3c41326b155 100644 --- a/substrate/frame/support/src/dispatch.rs +++ b/substrate/frame/support/src/dispatch.rs @@ -48,6 +48,9 @@ pub trait Callable<T> { // https://github.com/rust-lang/rust/issues/51331 pub type CallableCallFor<A, T> = <A as Callable<T>>::Call; +/// A type that can be used as a parameter in a dispatchable function. +/// +/// When using `decl_module` all arguments for call functions must implement this trait. pub trait Parameter: Codec + EncodeLike + Clone + Eq + fmt::Debug {} impl<T> Parameter for T where T: Codec + EncodeLike + Clone + Eq + fmt::Debug {} -- GitLab