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/desktop_notification.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/actions/desktop_notification.rs') diff --git a/src/actions/desktop_notification.rs b/src/actions/desktop_notification.rs index d831a59..6ea89f7 100644 --- a/src/actions/desktop_notification.rs +++ b/src/actions/desktop_notification.rs @@ -17,6 +17,10 @@ impl<'a> DesktopNotificationAction<'a> { #[async_trait] impl Action<'_> for DesktopNotificationAction<'_> { + fn name(&self) -> &'static str { + "desktop_notification" + } + async fn run(&self, params: Option<&MessageParams<'_, '_>>) -> Result<()> { use notify_rust::Notification; Notification::new() -- cgit v1.2.3-70-g09d2