diff --git a/src/parser/vcard/component.rs b/src/parser/vcard/component.rs index 41beecc..c17468f 100644 --- a/src/parser/vcard/component.rs +++ b/src/parser/vcard/component.rs @@ -9,7 +9,7 @@ extern crate serde; use crate::parser::{Component, ParserError}; use crate::property::{Property, PropertyParser}; -#[derive(Debug, Clone, Default)] +#[derive(Debug, Clone, Default, Eq, PartialEq, Hash)] #[cfg_attr(feature = "serde-derive", derive(serde::Serialize, serde::Deserialize))] /// A VCARD contact. pub struct VcardContact { diff --git a/src/property.rs b/src/property.rs index 6b0bdc1..d71d0e0 100644 --- a/src/property.rs +++ b/src/property.rs @@ -63,7 +63,7 @@ pub enum PropertyError { } /// A VCARD/ICAL property. -#[derive(Debug, Clone, Default)] +#[derive(Debug, Clone, Default, Eq, PartialEq, Hash)] #[cfg_attr(feature = "serde-derive", derive(serde::Serialize, serde::Deserialize))] pub struct Property { /// Property name.