aboutsummaryrefslogtreecommitdiff
path: root/src/raw/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/raw/parser.rs')
-rw-r--r--src/raw/parser.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/raw/parser.rs b/src/raw/parser.rs
index eaf8e6b..dcc7f2f 100644
--- a/src/raw/parser.rs
+++ b/src/raw/parser.rs
@@ -76,7 +76,7 @@ use thiserror::Error;
use super::*;
/// EVTC file header.
-#[derive(Clone, Debug, PartialEq, Eq)]
+#[derive(Clone, Debug, PartialEq, Eq, Hash, Default)]
pub struct Header {
/// arcpds build date, as `yyyymmdd` string.
pub arcdps_build: String,
@@ -92,7 +92,7 @@ pub struct Header {
///
/// Note that this struct does not yet do any preprocessing of the events. It is simply a
/// representation of the input file as a structured object.
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, PartialEq, Eq, Hash, Default)]
pub struct Evtc {
/// The file header values.
pub header: Header,
@@ -110,7 +110,7 @@ pub struct Evtc {
///
/// This can speed up parsing for applications which can work with the header, as the event stream
/// is the largest chunk of data that has to be parsed.
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, PartialEq, Eq, Hash, Default)]
pub struct PartialEvtc {
/// The file header values.
pub header: Header,