barectf_parser/types/
event.rs

1use crate::types::{EventId, FieldValue, LogLevel, Timestamp};
2use internment::Intern;
3use serde::{Deserialize, Serialize};
4
5#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]
6pub struct Event {
7    pub id: EventId,
8    pub name: Intern<String>,
9    pub timestamp: Timestamp,
10    pub log_level: Option<LogLevel>,
11    pub common_context: Vec<(Intern<String>, FieldValue)>,
12    pub specific_context: Vec<(Intern<String>, FieldValue)>,
13    pub payload: Vec<(Intern<String>, FieldValue)>,
14}