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: String
A URI identifying an XMPP application.
hash: Algo
The 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§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 moreSource§impl TryFrom<Element> for Caps
impl TryFrom<Element> for Caps
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl 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 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