pub struct ServicesResult {
pub type_: Option<Type>,
pub services: Vec<Service>,
}
Expand description
Structure representing a <services xmlns='urn:xmpp:extdisco:2'/>
element.
Fields§
§type_: Option<Type>
The service type which was requested.
services: Vec<Service>
List of services.
Trait Implementations§
Source§impl AsXml for ServicesResult
impl AsXml for ServicesResult
Source§type ItemIter<'xso_proc_as_xml_iter_lifetime> = ServicesResultAsXmlIterator<'xso_proc_as_xml_iter_lifetime>
type ItemIter<'xso_proc_as_xml_iter_lifetime> = ServicesResultAsXmlIterator<'xso_proc_as_xml_iter_lifetime>
The iterator type. Read more
Source§impl Clone for ServicesResult
impl Clone for ServicesResult
Source§fn clone(&self) -> ServicesResult
fn clone(&self) -> ServicesResult
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ServicesResult
impl Debug for ServicesResult
Source§impl From<ServicesResult> for Element
impl From<ServicesResult> for Element
Source§fn from(other: ServicesResult) -> Self
fn from(other: ServicesResult) -> Self
Converts to this type from the input type.
Source§impl FromXml for ServicesResult
impl FromXml for ServicesResult
Source§type Builder = ServicesResultFromXmlBuilder
type Builder = ServicesResultFromXmlBuilder
A builder type used to construct the element. Read more
Source§fn from_events(
name: QName,
attrs: AttrMap,
) -> Result<Self::Builder, FromEventsError>
fn from_events( name: QName, attrs: AttrMap, ) -> Result<Self::Builder, FromEventsError>
Attempt to initiate the streamed construction of this struct from XML. Read more
Source§impl PartialEq for ServicesResult
impl PartialEq for ServicesResult
Source§impl TryFrom<Element> for ServicesResult
impl TryFrom<Element> for ServicesResult
impl IqResultPayload for ServicesResult
impl IqSetPayload for ServicesResult
impl StructuralPartialEq for ServicesResult
Auto Trait Implementations§
impl Freeze for ServicesResult
impl RefUnwindSafe for ServicesResult
impl Send for ServicesResult
impl Sync for ServicesResult
impl Unpin for ServicesResult
impl UnwindSafe for ServicesResult
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