pub struct Roster {
pub ver: Option<String>,
pub items: Vec<Item>,
}
Expand description
The contact list of the user.
Fields§
§ver: Option<String>
Version of the contact list.
This is an opaque string that should only be sent back to the server on a new connection, if this client is storing the contact list between connections.
items: Vec<Item>
List of the contacts of the user.
Trait Implementations§
Source§impl AsXml for Roster
impl AsXml for Roster
Source§impl FromXml for Roster
impl FromXml for Roster
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 Roster
impl TryFrom<Element> for Roster
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl IqGetPayload for Roster
impl IqResultPayload for Roster
impl IqSetPayload for Roster
impl StructuralPartialEq for Roster
Auto Trait Implementations§
impl Freeze for Roster
impl RefUnwindSafe for Roster
impl Send for Roster
impl Sync for Roster
impl Unpin for Roster
impl UnwindSafe for Roster
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