pub struct Subscribe {
pub jid: Jid,
pub node: Option<NodeName>,
}
Expand description
A request to subscribe a JID to a node.
Fields§
§jid: Jid
The JID being subscribed.
node: Option<NodeName>
The node to subscribe to.
Trait Implementations§
Source§impl AsXml for Subscribe
impl AsXml for Subscribe
Source§impl FromXml for Subscribe
impl FromXml for Subscribe
Source§type Builder = SubscribeFromXmlBuilder
type Builder = SubscribeFromXmlBuilder
A builder type used to construct the element. Read more
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 Subscribe
impl TryFrom<Element> for Subscribe
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl StructuralPartialEq for Subscribe
Auto Trait Implementations§
impl Freeze for Subscribe
impl RefUnwindSafe for Subscribe
impl Send for Subscribe
impl Sync for Subscribe
impl Unpin for Subscribe
impl UnwindSafe for Subscribe
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