cyndikator_dispatch/event/mod.rs
1use chrono::{DateTime, Local};
2
3/// An event modeling a rss items and other such notification systems.
4#[derive(Debug)]
5pub struct Event {
6 /// Url associated with the event
7 pub url: Option<String>,
8
9 /// Title of an event
10 pub title: Option<String>,
11
12 /// Categories the event
13 pub categories: Vec<String>,
14
15 /// Description
16 pub description: Option<String>,
17
18 /// Url where the event was found
19 pub feed_url: String,
20
21 /// Title of the feed
22 pub feed_title: Option<String>,
23
24 /// Categories on the feed
25 pub feed_categories: Vec<String>,
26
27 /// DateTime when the event took place
28 pub date: Option<DateTime<Local>>,
29}