From 6c8f59502f3bb0279eae1091f19a7c0bb458a2c7 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 23 Apr 2024 15:55:28 +0100 Subject: Add name() to Action trait --- src/actions.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/actions.rs') diff --git a/src/actions.rs b/src/actions.rs index d006207..b002df8 100644 --- a/src/actions.rs +++ b/src/actions.rs @@ -61,6 +61,8 @@ impl fmt::Display for AnyActionConfig { #[async_trait] pub trait Action<'a> { + fn name(&self) -> &'static str; + async fn run(&self, params: Option<&MessageParams<'_, '_>>) -> Result<()>; } -- cgit v1.2.3-70-g09d2