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§
Source§impl AsXml for Payload
impl AsXml for Payload
Source§type ItemIter<'xso_proc_as_xml_iter_lifetime> = PayloadAsXmlIterator<'xso_proc_as_xml_iter_lifetime>
where
Self: 'xso_proc_as_xml_iter_lifetime
type ItemIter<'xso_proc_as_xml_iter_lifetime> = PayloadAsXmlIterator<'xso_proc_as_xml_iter_lifetime> where Self: 'xso_proc_as_xml_iter_lifetime
The iterator type. Read more
Source§impl FromXml for Payload
impl FromXml for Payload
Source§fn from_events(
name: QName,
attrs: AttrMap,
ctx: &Context<'_>,
) -> Result<Self::Builder, FromEventsError>
fn from_events( name: QName, attrs: AttrMap, ctx: &Context<'_>, ) -> Result<Self::Builder, FromEventsError>
Attempt to initiate the streamed construction of this struct from XML. Read more
Source§fn xml_name_matcher() -> XmlNameMatcher<'static>
fn xml_name_matcher() -> XmlNameMatcher<'static>
Return a predicate which determines if
Self may be parsed from
a given XML element. Read moreimpl 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 UnsafeUnpin 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