referrerpolicy=no-referrer-when-downgrade
frame_support::traits

Trait 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§

Source

fn get_module_names() -> &'static [&'static str]

Return all module names.

Source

fn get_call_names(module: &str) -> &'static [&'static str]

Return all function names for the given module.

Source

fn get_call_metadata(&self) -> CallMetadata

Return a CallMetadata, containing function and pallet name of the Call.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

impl GetCallMetadata for RuntimeCall

impl GetCallMetadata for RuntimeCall

impl GetCallMetadata for RuntimeCall

impl GetCallMetadata for RuntimeCall

impl GetCallMetadata for RuntimeCall

impl GetCallMetadata for RuntimeCall

impl GetCallMetadata for RuntimeCall

impl GetCallMetadata for RuntimeCall

impl GetCallMetadata for RuntimeCall

impl GetCallMetadata for RuntimeCall

impl GetCallMetadata for RuntimeCall

impl GetCallMetadata for RuntimeCall

impl GetCallMetadata for RuntimeCall

impl GetCallMetadata for RuntimeCall

impl GetCallMetadata for RuntimeCall