diff options
author | sommerfeld <sommerfeld@sommerfeld.dev> | 2024-04-23 15:55:28 +0100 |
---|---|---|
committer | sommerfeld <sommerfeld@sommerfeld.dev> | 2024-04-23 16:08:56 +0100 |
commit | 6c8f59502f3bb0279eae1091f19a7c0bb458a2c7 (patch) | |
tree | 22478ffe3ae68efe1d329c8ea2491d328a8e5d01 /src/actions.rs | |
parent | 3c749a1add53a7eedeed5a95dfe68092bce29c42 (diff) | |
download | sentrum-6c8f59502f3bb0279eae1091f19a7c0bb458a2c7.tar.gz sentrum-6c8f59502f3bb0279eae1091f19a7c0bb458a2c7.tar.bz2 sentrum-6c8f59502f3bb0279eae1091f19a7c0bb458a2c7.zip |
Add name() to Action trait
Diffstat (limited to 'src/actions.rs')
-rw-r--r-- | src/actions.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<()>; } |