mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
Derive PartialEq for PubSub elements
This commit is contained in:
parent
80efd2eb19
commit
44029c90bb
2 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue