File size: 380 Bytes
d90101d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #[cfg(not(feature = "std"))]
use alloc::string::String;
use core::time::Duration;
/// An Event
#[derive(Default, Debug, Eq, PartialEq, Clone)]
pub struct Event {
/// The event name if given
pub event: String,
/// The event data
pub data: String,
/// The event id if given
pub id: String,
/// Retry duration if given
pub retry: Option<Duration>,
}
|