Enum xmpp_parsers::pubsub::pubsub::PubSub
source · pub enum PubSub {
Create {
create: Create,
configure: Option<Configure>,
},
Subscribe {
subscribe: Option<Subscribe>,
options: Option<Options>,
},
Publish {
publish: Publish,
publish_options: Option<PublishOptions>,
},
Affiliations(Affiliations),
Default(Default),
Items(Items),
Retract(Retract),
Subscription(SubscriptionElem),
Subscriptions(Subscriptions),
Unsubscribe(Unsubscribe),
}
Expand description
Main payload used to communicate with a PubSub service.
<pubsub xmlns="http://jabber.org/protocol/pubsub"/>
Variants§
Create
Fields
Request to create a new node, with optional suggested name and suggested configuration.
Subscribe
Fields
A subcribe request.
Publish
Fields
§
publish_options: Option<PublishOptions>
The options related to this publish request.
Request to publish items to a node, with optional options.
Affiliations(Affiliations)
A list of affiliations you have on a service, or on a node.
Default(Default)
Request for a default node configuration.
Items(Items)
A request for a list of items.
Retract(Retract)
A request to retract some items from a node.
Subscription(SubscriptionElem)
A request about a subscription.
Subscriptions(Subscriptions)
A request for current subscriptions.
Unsubscribe(Unsubscribe)
An unsubscribe request.
Trait Implementations§
source§impl PartialEq for PubSub
impl PartialEq for PubSub
impl IqGetPayload for PubSub
impl IqResultPayload for PubSub
impl IqSetPayload for PubSub
impl StructuralPartialEq for PubSub
Auto Trait Implementations§
impl RefUnwindSafe for PubSub
impl Send for PubSub
impl Sync for PubSub
impl Unpin for PubSub
impl UnwindSafe for PubSub
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more