1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
use plugin_api::{PluginInformation,SayHello};

pub struct PluginMetadataType;

pub const PLUGIN_METADATA: PluginMetadataType = PluginMetadataType;

impl PluginInformation for PluginMetadataType {
  fn name(&self) -> String {
    "english".to_string()
  }
}

pub struct English;

impl SayHello for English {
  fn say_hello() -> String {
    "hello, world".to_string()
  }
}