diff --git a/src/datetime.rs b/src/datetime.rs index c3cd925..a37c582 100644 --- a/src/datetime.rs +++ b/src/datetime.rs @@ -4,7 +4,7 @@ use serde::{de, ser}; use std::{fmt, str::FromStr}; /// A wrapper type around `chrono`'s `DateTime` (if the `chrono` feature is active. ), which supports parsing from WMI-format strings. -#[derive(Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq)] +#[derive(Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)] pub struct WMIDateTime(pub DateTime); impl FromStr for WMIDateTime {