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
Request to create a new node, with optional suggested name and suggested configuration.
Fields
Subscribe
A subscribe request.
Fields
Publish
Request to publish items to a node, with optional options.
Fields
§
publish_options: Option<PublishOptions>
The options related to this publish request.
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
source§impl TryFrom<Element> for PubSub
impl TryFrom<Element> for PubSub
§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl IqGetPayload for PubSub
impl IqResultPayload for PubSub
impl IqSetPayload for PubSub
impl StructuralPartialEq for PubSub
Auto Trait Implementations§
impl Freeze for PubSub
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)