From c945eb0d3b5a160987e4179a23bc22c917a98564 Mon Sep 17 00:00:00 2001 From: Paul Fariello Date: Wed, 28 Oct 2020 14:18:37 +0100 Subject: [PATCH] Add options to pubsub::PubSub::Subscribe element And reorder according to schemas definition in xep --- xmpp-parsers/src/pubsub/pubsub.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/xmpp-parsers/src/pubsub/pubsub.rs b/xmpp-parsers/src/pubsub/pubsub.rs index 2066d466..a21f36af 100644 --- a/xmpp-parsers/src/pubsub/pubsub.rs +++ b/xmpp-parsers/src/pubsub/pubsub.rs @@ -294,6 +294,15 @@ pub enum PubSub { configure: Option, }, + /// A subcribe request. + Subscribe { + /// The subscribe request. + subscribe: Subscribe, + + /// The options related to this subscribe request. + options: Option, + }, + /// Request to publish items to a node, with optional options. Publish { /// The publish request. @@ -321,9 +330,6 @@ pub enum PubSub { /// A request for current subscriptions. Subscriptions(Subscriptions), - /// A subcribe request. - Subscribe(Subscribe), - /// An unsubscribe request. Unsubscribe(Unsubscribe), }