trace_recorder_parser/streaming/event/
user.rs1use crate::streaming::event::EventCount;
2use crate::time::Timestamp;
3use crate::types::{Argument, FormatString, FormattedString, UserEventChannel};
4use derive_more::Display;
5
6#[derive(Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug, Display)]
7#[display(fmt = "[{timestamp}]:[{channel}]='{formatted_string}'")]
8pub struct UserEvent {
9 pub event_count: EventCount,
10 pub timestamp: Timestamp,
11
12 pub channel: UserEventChannel,
13 pub format_string: FormatString,
14 pub formatted_string: FormattedString,
15 pub args: Vec<Argument>,
16}