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;
|
use jid::Jid;
|
||||||
|
|
||||||
/// Event wrapper for a PubSub `<item/>`.
|
/// Event wrapper for a PubSub `<item/>`.
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone, PartialEq)]
|
||||||
pub struct Item(pub PubSubItem);
|
pub struct Item(pub PubSubItem);
|
||||||
|
|
||||||
impl_pubsub_item!(Item, PUBSUB_EVENT);
|
impl_pubsub_item!(Item, PUBSUB_EVENT);
|
||||||
|
|
||||||
/// Represents an event happening to a PubSub node.
|
/// Represents an event happening to a PubSub node.
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone, PartialEq)]
|
||||||
pub enum PubSubEvent {
|
pub enum PubSubEvent {
|
||||||
/*
|
/*
|
||||||
Collection {
|
Collection {
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ generate_element!(
|
||||||
/// Main payload used to communicate with a PubSubOwner service.
|
/// Main payload used to communicate with a PubSubOwner service.
|
||||||
///
|
///
|
||||||
/// `<pubsub xmlns="http://jabber.org/protocol/pubsub#owner"/>`
|
/// `<pubsub xmlns="http://jabber.org/protocol/pubsub#owner"/>`
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone, PartialEq)]
|
||||||
pub enum PubSubOwner {
|
pub enum PubSubOwner {
|
||||||
/// Manage the affiliations of a node.
|
/// Manage the affiliations of a node.
|
||||||
Affiliations(Affiliations),
|
Affiliations(Affiliations),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue