ed_journals/modules/logs/content/
log_event.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};

use crate::logs::content::LogEventContent;

/// An entry from a [LogFile](super::super::LogFile). Most of the content can be found in the
/// [LogEventContent].
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
pub struct LogEvent {
    pub timestamp: DateTime<Utc>,

    #[serde(flatten)]
    pub content: LogEventContent,
}