pub struct Caps {
pub ext: Option<String>,
pub node: String,
pub hash: Algo,
pub ver: Vec<u8>,
}Expand description
Represents a capability hash for a given client.
Warning: This protocol is insecure, you may want to switch to ecaps2 instead, see this email.
Fields§
§ext: Option<String>Deprecated list of additional feature bundles.
node: StringA URI identifying an XMPP application.
hash: AlgoThe algorithm of the hash of these caps.
ver: Vec<u8>The hash of that application’s disco#info.
Implementations§
Trait Implementations§
Source§impl AsXml for Caps
impl AsXml for Caps
Source§type ItemIter<'xso_proc_as_xml_iter_lifetime> = CapsAsXmlIterator<'xso_proc_as_xml_iter_lifetime>
where
Self: 'xso_proc_as_xml_iter_lifetime
type ItemIter<'xso_proc_as_xml_iter_lifetime> = CapsAsXmlIterator<'xso_proc_as_xml_iter_lifetime> where Self: 'xso_proc_as_xml_iter_lifetime
The iterator type. Read more
Source§impl FromXml for Caps
impl FromXml for Caps
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 moreimpl PresencePayload for Caps
Auto Trait Implementations§
impl Freeze for Caps
impl RefUnwindSafe for Caps
impl Send for Caps
impl Sync for Caps
impl Unpin for Caps
impl UnsafeUnpin for Caps
impl UnwindSafe for Caps
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