pub struct Options {
pub jid: Jid,
pub node: Option<NodeName>,
pub subid: Option<SubscriptionId>,
pub form: Option<DataForm>,
}Expand description
The options associated to a subscription request.
Fields§
§jid: JidThe JID affected by this request.
node: Option<NodeName>The node affected by this request.
subid: Option<SubscriptionId>The subscription identifier affected by this request.
form: Option<DataForm>The form describing the subscription.
Trait Implementations§
Source§impl AsXml for Options
impl AsXml for Options
Source§impl FromXml for Options
impl FromXml for Options
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 Options
impl TryFrom<Element> for Options
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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