1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
/*
Appellation: events <module>
Creator: FL03 <jo3mccain@icloud.com>
Description:
... Summary ...
*/
pub use self::{event::*, misc::*};
pub(crate) mod event;
pub(crate) mod misc;
pub trait Eventful {
fn event(&self) -> &Self {
self
}
fn id(&self) -> i64;
fn timestamp(&self) -> i64;
}
#[cfg(test)]
mod tests {
use super::Event;
#[test]
fn test_event_default() {
let a = Event::default();
let b = a.clone();
assert_eq!(a, b)
}
}