Skip to main content

mps/elements/
reminder.rs

1use super::split_args;
2
3#[derive(Debug, Clone)]
4pub struct ReminderData {
5    pub tags: Vec<String>,
6    pub at:   Option<String>,
7}
8
9impl ReminderData {
10    pub fn parse_args(raw: &str) -> Self {
11        let p = split_args(raw);
12        ReminderData { tags: p.tags, at: p.attrs.get("at").cloned() }
13    }
14}