Derive PartialEq for PubSub elements

This commit is contained in:
mb 2024-06-17 18:53:41 +02:00
parent 80efd2eb19
commit 44029c90bb
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -14,13 +14,13 @@ use crate::Element;
use jid::Jid;
/// Event wrapper for a PubSub `<item/>`.
#[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 {

View file

@ -122,7 +122,7 @@ generate_element!(
/// Main payload used to communicate with a PubSubOwner service.
///
/// `<pubsub xmlns="http://jabber.org/protocol/pubsub#owner"/>`
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq)]
pub enum PubSubOwner {
/// Manage the affiliations of a node.
Affiliations(Affiliations),