pub struct Enable {
pub jid: BareJid,
pub node: Option<String>,
pub form: Option<DataForm>,
}
Expand description
An enable element for push notifications
Fields§
§jid: BareJid
The ‘jid’ attribute of the XMPP Push Service being enabled.
node: Option<String>
The ‘node’ attribute which is set to the provisioned node specified by the App Server.
form: Option<DataForm>
Optional additional information to be provided with each published notification, such as authentication credentials.
Trait Implementations§
Source§impl AsXml for Enable
impl AsXml for Enable
Source§impl FromXml for Enable
impl FromXml for Enable
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 Enable
impl TryFrom<Element> for Enable
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl IqSetPayload for Enable
Auto Trait Implementations§
impl Freeze for Enable
impl RefUnwindSafe for Enable
impl Send for Enable
impl Sync for Enable
impl Unpin for Enable
impl UnwindSafe for Enable
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