trace_recorder_parser/snapshot/event/
user.rs

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