manabrew_engine/keyword/
simple_keyword.rs1use super::keyword_instance::{Keyword, KeywordInstanceData};
6
7#[derive(Debug, Clone)]
10pub struct SimpleKeyword {
11 pub base: KeywordInstanceData,
12}
13
14impl SimpleKeyword {
15 pub fn new(keyword: Keyword, original: String) -> Self {
17 Self {
18 base: KeywordInstanceData::new(keyword, original),
19 }
20 }
21
22 pub fn get_title(&self) -> String {
24 self.base.keyword.display_name().to_string()
25 }
26
27 pub fn parse(&mut self, _details: &str) {
29 }
31
32 pub fn format_reminder_text(&self, reminder_text: &str) -> String {
34 reminder_text.to_string()
35 }
36}