Struct xmpp_parsers::disco::Feature
source · pub struct Feature {
pub var: String,
}
Expand description
Structure representing a <feature xmlns='http://jabber.org/protocol/disco#info'/>
element.
Fields§
§var: String
Namespace of the feature we want to represent.
Implementations§
Trait Implementations§
source§impl FromXml for Feature
impl FromXml for Feature
§type Builder = FromEventsViaElement<Feature>
type Builder = FromEventsViaElement<Feature>
A builder type used to construct the element. Read more
source§fn from_events(
qname: QName,
attrs: AttrMap,
) -> Result<Self::Builder, FromEventsError>
fn from_events( qname: QName, attrs: AttrMap, ) -> Result<Self::Builder, FromEventsError>
Attempt to initiate the streamed construction of this struct from XML. Read more
source§impl IntoXml for Feature
impl IntoXml for Feature
§type EventIter = IntoEventsViaElement
type EventIter = IntoEventsViaElement
The iterator type. Read more
source§fn into_event_iter(self) -> Result<Self::EventIter, Error>
fn into_event_iter(self) -> Result<Self::EventIter, Error>
Return an iterator which emits the contents of the struct or enum as
serialisable
rxml::Event
items.source§impl PartialEq for Feature
impl PartialEq for Feature
impl Eq for Feature
impl StructuralPartialEq for Feature
Auto Trait Implementations§
impl Freeze for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnwindSafe for Feature
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