pub struct Confirm {
pub method: String,
pub url: String,
pub id: String,
}
Expand description
XEP-0070 “confirm” element used to request user confirmation before accessing a protected HTTP resource, or as a reply to such request.
This can be used as:
- A message payload (when the request is sent to a bare JID or when receiving the reply)
- A Set Iq payload (when the request is sent to a full JID as an Iq). The confirm element may also be present in responses, but should be ignored (the IQ id is used to identify the request in that case).
Fields§
§method: String
HTTP method used to access the resource
url: String
URL being accessed and guarded by the authentication request
id: String
Identifier of the authentication request
Trait Implementations§
Source§impl AsXml for Confirm
impl AsXml for Confirm
Source§impl FromXml for Confirm
impl FromXml for Confirm
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 Confirm
impl TryFrom<Element> for Confirm
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl Eq for Confirm
impl IqGetPayload for Confirm
impl MessagePayload for Confirm
impl StructuralPartialEq for Confirm
Auto Trait Implementations§
impl Freeze for Confirm
impl RefUnwindSafe for Confirm
impl Send for Confirm
impl Sync for Confirm
impl Unpin for Confirm
impl UnwindSafe for Confirm
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