aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/actions/nostr.rs
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2024-04-23 15:55:28 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2024-04-23 16:08:56 +0100
commit6c8f59502f3bb0279eae1091f19a7c0bb458a2c7 (patch)
tree22478ffe3ae68efe1d329c8ea2491d328a8e5d01 /src/actions/nostr.rs
parent3c749a1add53a7eedeed5a95dfe68092bce29c42 (diff)
downloadsentrum-6c8f59502f3bb0279eae1091f19a7c0bb458a2c7.tar.gz
sentrum-6c8f59502f3bb0279eae1091f19a7c0bb458a2c7.tar.bz2
sentrum-6c8f59502f3bb0279eae1091f19a7c0bb458a2c7.zip
Add name() to Action trait
Diffstat (limited to 'src/actions/nostr.rs')
-rw-r--r--src/actions/nostr.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/actions/nostr.rs b/src/actions/nostr.rs
index aebccba..3507d2e 100644
--- a/src/actions/nostr.rs
+++ b/src/actions/nostr.rs
@@ -173,6 +173,10 @@ impl<'a> NostrAction<'a> {
#[async_trait]
impl Action<'_> for NostrAction<'_> {
+ fn name(&self) -> &'static str {
+ "nostr"
+ }
+
async fn run(&self, params: Option<&MessageParams<'_, '_>>) -> Result<()> {
let subject = self.message_config.subject(params)?;
let body = self.message_config.body(params)?;