pub enum Payload {
Affiliations {
node: NodeName,
affiliations: Vec<Affiliation>,
},
Configure {
node: Option<NodeName>,
form: Option<DataForm>,
},
Default {
form: Option<DataForm>,
},
Delete {
node: NodeName,
redirect_uri: Option<String>,
},
Purge {
node: NodeName,
},
Subscriptions {
node: NodeName,
subscriptions: Vec<SubscriptionElem>,
},
}
Expand description
Main payload used to communicate with a PubSub service.
<pubsub xmlns="http://jabber.org/protocol/pubsub#owner"/>
Variants§
Affiliations
Manage the affiliations of a node.
Fields
§
affiliations: Vec<Affiliation>
The actual list of affiliation elements.
Configure
Request to configure a node.
Fields
Default
Request the default node configuration.
Delete
Delete a node.
Fields
Purge
Purge all items from node.
Subscriptions
Request the current subscriptions to a node.
Fields
§
subscriptions: Vec<SubscriptionElem>
The list of subscription elements returned.
Trait Implementations§
impl StructuralPartialEq for Payload
Auto Trait Implementations§
impl Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
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