pub struct Item {
pub jid: Jid,
pub node: Option<String>,
pub name: Option<String>,
}
Expand description
Structure representing an <item xmlns='http://jabber.org/protocol/disco#items'/>
element.
Fields§
§jid: Jid
JID of the entity pointed by this item.
node: Option<String>
Node of the entity pointed by this item.
name: Option<String>
Name of the entity pointed by this item.
Trait Implementations§
Source§impl AsXml for Item
impl AsXml for Item
Source§impl FromXml for Item
impl FromXml for Item
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 Item
impl TryFrom<Element> for Item
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
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