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/ntfy.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/actions/ntfy.rs') diff --git a/src/actions/ntfy.rs b/src/actions/ntfy.rs index 7d83b87..badee70 100644 --- a/src/actions/ntfy.rs +++ b/src/actions/ntfy.rs @@ -106,6 +106,10 @@ impl<'a> NtfyAction<'a> { #[async_trait] impl Action<'_> for NtfyAction<'_> { + fn name(&self) -> &'static str { + "ntfy" + } + async fn run(&self, params: Option<&MessageParams<'_, '_>>) -> Result<()> { let payload = self .payload_template -- cgit v1.2.3-70-g09d2