Add options to pubsub::PubSub::Subscribe element
And reorder according to schemas definition in xep
This commit is contained in:
parent
ebf096488b
commit
c945eb0d3b
1 changed files with 9 additions and 3 deletions
|
|
@ -294,6 +294,15 @@ pub enum PubSub {
|
||||||
configure: Option<Configure>,
|
configure: Option<Configure>,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/// A subcribe request.
|
||||||
|
Subscribe {
|
||||||
|
/// The subscribe request.
|
||||||
|
subscribe: Subscribe,
|
||||||
|
|
||||||
|
/// The options related to this subscribe request.
|
||||||
|
options: Option<Options>,
|
||||||
|
},
|
||||||
|
|
||||||
/// Request to publish items to a node, with optional options.
|
/// Request to publish items to a node, with optional options.
|
||||||
Publish {
|
Publish {
|
||||||
/// The publish request.
|
/// The publish request.
|
||||||
|
|
@ -321,9 +330,6 @@ pub enum PubSub {
|
||||||
/// A request for current subscriptions.
|
/// A request for current subscriptions.
|
||||||
Subscriptions(Subscriptions),
|
Subscriptions(Subscriptions),
|
||||||
|
|
||||||
/// A subcribe request.
|
|
||||||
Subscribe(Subscribe),
|
|
||||||
|
|
||||||
/// An unsubscribe request.
|
/// An unsubscribe request.
|
||||||
Unsubscribe(Unsubscribe),
|
Unsubscribe(Unsubscribe),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue