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/terminal_print.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/terminal_print.rs')
-rw-r--r-- | src/actions/terminal_print.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/actions/terminal_print.rs b/src/actions/terminal_print.rs index 02536c7..e0c8599 100644 --- a/src/actions/terminal_print.rs +++ b/src/actions/terminal_print.rs @@ -17,6 +17,8 @@ impl<'a> TerminalPrintAction<'a> { #[async_trait] impl Action<'_> for TerminalPrintAction<'_> { + fn name(&self) -> &'static str { "terminal_print" } + async fn run(&self, params: Option<&MessageParams<'_, '_>>) -> Result<()> { println!( "{}\n{}\n", |