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/telegram.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/actions/telegram.rs') diff --git a/src/actions/telegram.rs b/src/actions/telegram.rs index b489864..3e1809d 100644 --- a/src/actions/telegram.rs +++ b/src/actions/telegram.rs @@ -45,6 +45,10 @@ impl<'a> TelegramAction<'a> { #[async_trait] impl Action<'_> for TelegramAction<'_> { + fn name(&self) -> &'static str { + "telegram" + } + async fn run(&self, params: Option<&MessageParams<'_, '_>>) -> Result<()> { let subject = self.message_config.subject(params)?; let body = self.message_config.body(params)?; -- cgit v1.2.3-70-g09d2