Trait frame_support::traits::GetCallMetadata
source · pub trait GetCallMetadata {
// Required methods
fn get_module_names() -> &'static [&'static str];
fn get_call_names(module: &str) -> &'static [&'static str];
fn get_call_metadata(&self) -> CallMetadata;
}
Expand description
Gets the metadata for the Call - function name and pallet name.
Required Methods§
sourcefn get_module_names() -> &'static [&'static str]
fn get_module_names() -> &'static [&'static str]
Return all module names.
sourcefn get_call_names(module: &str) -> &'static [&'static str]
fn get_call_names(module: &str) -> &'static [&'static str]
Return all function names for the given module
.
sourcefn get_call_metadata(&self) -> CallMetadata
fn get_call_metadata(&self) -> CallMetadata
Return a CallMetadata
, containing function and pallet name of the Call.
Object Safety§
This trait is not object safe.