pub struct BindQuery {
pub tag: Option<String>,
pub payloads: Vec<Element>,
}
Expand description
Represents a <bind/>
element, as sent by the client inline in the <authenticate/>
SASL 2
element, to perform the binding at the same time as the authentication.
Fields§
§tag: Option<String>
Short text string that typically identifies the software the user is using, mostly useful for diagnostic purposes for users, operators and developers. This tag may be visible to other entities on the XMPP network.
payloads: Vec<Element>
Features that the client requests to be automatically enabled for its new session.
Trait Implementations§
Source§impl AsXml for BindQuery
impl AsXml for BindQuery
Source§impl FromXml for BindQuery
impl FromXml for BindQuery
Source§type Builder = BindQueryFromXmlBuilder
type Builder = BindQueryFromXmlBuilder
A builder type used to construct the element. Read more
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 BindQuery
impl TryFrom<Element> for BindQuery
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl StructuralPartialEq for BindQuery
Auto Trait Implementations§
impl Freeze for BindQuery
impl RefUnwindSafe for BindQuery
impl Send for BindQuery
impl Sync for BindQuery
impl Unpin for BindQuery
impl UnwindSafe for BindQuery
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