pub trait MethodMapping<T> {
    const MODULE_ID: ModuleId;

    // Required methods
    fn to_mapping(self) -> Vec<(String, T)>;
    fn methods() -> Vec<&'static str>;
}

Required Associated Constants§

Required Methods§

source

fn to_mapping(self) -> Vec<(String, T)>

source

fn methods() -> Vec<&'static str>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> MethodMapping<T> for MetadataMethods<T>

source§

const MODULE_ID: ModuleId = ModuleId::Metadata