pub enum Payload {
Configuration {
node: NodeName,
form: Option<DataForm>,
},
Delete {
node: NodeName,
redirect: Option<String>,
},
Items {
node: NodeName,
published: Vec<Item>,
retracted: Vec<ItemId>,
},
Purge {
node: NodeName,
},
Subscription {
node: NodeName,
expiry: Option<DateTime>,
jid: Option<Jid>,
subid: Option<SubscriptionId>,
subscription: Option<Subscription>,
},
}
Expand description
Represents an event happening to a PubSub node.
Variants§
Configuration
This node’s configuration changed.
Delete
This node has been deleted, with an optional redirect to another node.
Fields
Items
Some items have been published or retracted on this node.
Fields
Purge
All items of this node just got removed at once.
Subscription
The user’s subscription to this node has changed.
Implementations§
Trait Implementations§
Source§impl AsXml for Payload
impl AsXml for Payload
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 moreSource§impl TryFrom<Element> for Payload
impl TryFrom<Element> for Payload
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
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