use rskit_hook::{Event, EventType};
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct TestEvent {
pub event_type: EventType,
pub message: String,
}
impl TestEvent {
#[must_use]
pub fn new(event_type: impl Into<String>, message: impl Into<String>) -> Self {
Self {
event_type: EventType::new(event_type),
message: message.into(),
}
}
}
impl Event for TestEvent {
fn event_type(&self) -> EventType {
self.event_type.clone()
}
}