diff --git a/parsers/src/pubsub/event.rs b/parsers/src/pubsub/event.rs index 1f98478..1461220 100644 --- a/parsers/src/pubsub/event.rs +++ b/parsers/src/pubsub/event.rs @@ -14,13 +14,13 @@ use crate::Element; use jid::Jid; /// Event wrapper for a PubSub ``. -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq)] pub struct Item(pub PubSubItem); impl_pubsub_item!(Item, PUBSUB_EVENT); /// Represents an event happening to a PubSub node. -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq)] pub enum PubSubEvent { /* Collection { diff --git a/parsers/src/pubsub/owner.rs b/parsers/src/pubsub/owner.rs index 43c6507..3f955bb 100644 --- a/parsers/src/pubsub/owner.rs +++ b/parsers/src/pubsub/owner.rs @@ -122,7 +122,7 @@ generate_element!( /// Main payload used to communicate with a PubSubOwner service. /// /// `` -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq)] pub enum PubSubOwner { /// Manage the affiliations of a node. Affiliations(Affiliations),