Struct xmpp_parsers::Element [−][src]
pub struct Element { /* fields omitted */ }
A struct representing a DOM Element.
Methods
impl Element
[src]
impl Element
pub fn builder<S>(name: S) -> ElementBuilder where
S: AsRef<str>,
[src]
pub fn builder<S>(name: S) -> ElementBuilder where
S: AsRef<str>,
Return a builder for an Element
with the given name
.
Examples
use minidom::Element; let elem = Element::builder("name") .ns("namespace") .attr("name", "value") .append("inner") .build(); assert_eq!(elem.name(), "name"); assert_eq!(elem.ns(), Some("namespace".to_owned())); assert_eq!(elem.attr("name"), Some("value")); assert_eq!(elem.attr("inexistent"), None); assert_eq!(elem.text(), "inner");
pub fn bare<S>(name: S) -> Element where
S: Into<String>,
[src]
pub fn bare<S>(name: S) -> Element where
S: Into<String>,
Returns a bare minimum Element
with this name.
Examples
use minidom::Element; let bare = Element::bare("name"); assert_eq!(bare.name(), "name"); assert_eq!(bare.ns(), None); assert_eq!(bare.attr("name"), None); assert_eq!(bare.text(), "");
pub fn name(&self) -> &str
[src]
pub fn name(&self) -> &str
Returns a reference to the name of this element.
pub fn prefix(&self) -> Option<&str>
[src]
pub fn prefix(&self) -> Option<&str>
Returns a reference to the prefix of this element.
Examples
use minidom::Element; let elem = Element::builder("prefix:name") .build(); assert_eq!(elem.name(), "name"); assert_eq!(elem.prefix(), Some("prefix"));
pub fn ns(&self) -> Option<String>
[src]
pub fn ns(&self) -> Option<String>
Returns a reference to the namespace of this element, if it has one, else None
.
pub fn attr(&self, name: &str) -> Option<&str>
[src]
pub fn attr(&self, name: &str) -> Option<&str>
Returns a reference to the value of the given attribute, if it exists, else None
.
ⓘImportant traits for Attrs<'a>pub fn attrs(&self) -> Attrs
[src]
pub fn attrs(&self) -> Attrs
Returns an iterator over the attributes of this element.
Example
use minidom::Element; let elm: Element = "<elem a=\"b\" />".parse().unwrap(); let mut iter = elm.attrs(); assert_eq!(iter.next().unwrap(), ("a", "b")); assert_eq!(iter.next(), None);
ⓘImportant traits for AttrsMut<'a>pub fn attrs_mut(&mut self) -> AttrsMut
[src]
pub fn attrs_mut(&mut self) -> AttrsMut
Returns an iterator over the attributes of this element, with the value being a mutable reference.
pub fn set_attr<S, V>(&mut self, name: S, val: V) where
S: Into<String>,
V: IntoAttributeValue,
[src]
pub fn set_attr<S, V>(&mut self, name: S, val: V) where
S: Into<String>,
V: IntoAttributeValue,
Modifies the value of an attribute.
pub fn is<N, NS>(&self, name: N, namespace: NS) -> bool where
N: AsRef<str>,
NS: AsRef<str>,
[src]
pub fn is<N, NS>(&self, name: N, namespace: NS) -> bool where
N: AsRef<str>,
NS: AsRef<str>,
Returns whether the element has the given name and namespace.
Examples
use minidom::Element; let elem = Element::builder("name").ns("namespace").build(); assert_eq!(elem.is("name", "namespace"), true); assert_eq!(elem.is("name", "wrong"), false); assert_eq!(elem.is("wrong", "namespace"), false); assert_eq!(elem.is("wrong", "wrong"), false);
pub fn has_ns<NS>(&self, namespace: NS) -> bool where
NS: AsRef<str>,
[src]
pub fn has_ns<NS>(&self, namespace: NS) -> bool where
NS: AsRef<str>,
Returns whether the element has the given namespace.
Examples
use minidom::Element; let elem = Element::builder("name").ns("namespace").build(); assert_eq!(elem.has_ns("namespace"), true); assert_eq!(elem.has_ns("wrong"), false);
pub fn from_reader<R>(reader: &mut Reader<R>) -> Result<Element, Error> where
R: BufRead,
[src]
pub fn from_reader<R>(reader: &mut Reader<R>) -> Result<Element, Error> where
R: BufRead,
Parse a document from an EventReader
.
pub fn write_to<W>(&self, writer: &mut W) -> Result<(), Error> where
W: Write,
[src]
pub fn write_to<W>(&self, writer: &mut W) -> Result<(), Error> where
W: Write,
Output a document to a Writer
.
pub fn to_writer<W>(&self, writer: &mut Writer<W>) -> Result<(), Error> where
W: Write,
[src]
pub fn to_writer<W>(&self, writer: &mut Writer<W>) -> Result<(), Error> where
W: Write,
Output the document to quick-xml Writer
pub fn write_to_inner<W>(&self, writer: &mut Writer<W>) -> Result<(), Error> where
W: Write,
[src]
pub fn write_to_inner<W>(&self, writer: &mut Writer<W>) -> Result<(), Error> where
W: Write,
Like write_to()
but without the <?xml?>
prelude
ⓘImportant traits for Iter<'a, T>pub fn nodes(&self) -> Iter<Node>
[src]
pub fn nodes(&self) -> Iter<Node>
Returns an iterator over references to every child node of this element.
Examples
use minidom::Element; let elem: Element = "<root>a<c1 />b<c2 />c</root>".parse().unwrap(); let mut iter = elem.nodes(); assert_eq!(iter.next().unwrap().as_text().unwrap(), "a"); assert_eq!(iter.next().unwrap().as_element().unwrap().name(), "c1"); assert_eq!(iter.next().unwrap().as_text().unwrap(), "b"); assert_eq!(iter.next().unwrap().as_element().unwrap().name(), "c2"); assert_eq!(iter.next().unwrap().as_text().unwrap(), "c"); assert_eq!(iter.next(), None);
ⓘImportant traits for IterMut<'a, T>pub fn nodes_mut(&mut self) -> IterMut<Node>
[src]
pub fn nodes_mut(&mut self) -> IterMut<Node>
Returns an iterator over mutable references to every child node of this element.
ⓘImportant traits for Children<'a>pub fn children(&self) -> Children
[src]
pub fn children(&self) -> Children
Returns an iterator over references to every child element of this element.
Examples
use minidom::Element; let elem: Element = "<root>hello<child1 />this<child2 />is<child3 />ignored</root>".parse().unwrap(); let mut iter = elem.children(); assert_eq!(iter.next().unwrap().name(), "child1"); assert_eq!(iter.next().unwrap().name(), "child2"); assert_eq!(iter.next().unwrap().name(), "child3"); assert_eq!(iter.next(), None);
ⓘImportant traits for ChildrenMut<'a>pub fn children_mut(&mut self) -> ChildrenMut
[src]
pub fn children_mut(&mut self) -> ChildrenMut
Returns an iterator over mutable references to every child element of this element.
ⓘImportant traits for Texts<'a>pub fn texts(&self) -> Texts
[src]
pub fn texts(&self) -> Texts
Returns an iterator over references to every text node of this element.
Examples
use minidom::Element; let elem: Element = "<root>hello<c /> world!</root>".parse().unwrap(); let mut iter = elem.texts(); assert_eq!(iter.next().unwrap(), "hello"); assert_eq!(iter.next().unwrap(), " world!"); assert_eq!(iter.next(), None);
ⓘImportant traits for TextsMut<'a>pub fn texts_mut(&mut self) -> TextsMut
[src]
pub fn texts_mut(&mut self) -> TextsMut
Returns an iterator over mutable references to every text node of this element.
pub fn append_child(&mut self, child: Element) -> &mut Element
[src]
pub fn append_child(&mut self, child: Element) -> &mut Element
Appends a child node to the Element
, returning the appended node.
Examples
use minidom::Element; let mut elem = Element::bare("root"); assert_eq!(elem.children().count(), 0); elem.append_child(Element::bare("child")); { let mut iter = elem.children(); assert_eq!(iter.next().unwrap().name(), "child"); assert_eq!(iter.next(), None); } let child = elem.append_child(Element::bare("new")); assert_eq!(child.name(), "new");
pub fn append_text_node<S>(&mut self, child: S) where
S: Into<String>,
[src]
pub fn append_text_node<S>(&mut self, child: S) where
S: Into<String>,
Appends a text node to an Element
.
Examples
use minidom::Element; let mut elem = Element::bare("node"); assert_eq!(elem.text(), ""); elem.append_text_node("text"); assert_eq!(elem.text(), "text");
pub fn append_comment_node<S>(&mut self, child: S) where
S: Into<String>,
[src]
pub fn append_comment_node<S>(&mut self, child: S) where
S: Into<String>,
Appends a comment node to an Element
.
Examples
use minidom::Element; let mut elem = Element::bare("node"); elem.append_comment_node("comment");
pub fn append_node(&mut self, node: Node)
[src]
pub fn append_node(&mut self, node: Node)
Appends a node to an Element
.
Examples
use minidom::{Element, Node}; let mut elem = Element::bare("node"); elem.append_node(Node::Text("hello".to_owned())); assert_eq!(elem.text(), "hello");
pub fn text(&self) -> String
[src]
pub fn text(&self) -> String
Returns the concatenation of all text nodes in the Element
.
Examples
use minidom::Element; let elem: Element = "<node>hello,<split /> world!</node>".parse().unwrap(); assert_eq!(elem.text(), "hello, world!");
pub fn get_child<N, NS>(&self, name: N, namespace: NS) -> Option<&Element> where
N: AsRef<str>,
NS: AsRef<str>,
[src]
pub fn get_child<N, NS>(&self, name: N, namespace: NS) -> Option<&Element> where
N: AsRef<str>,
NS: AsRef<str>,
Returns a reference to the first child element with the specific name and namespace, if it
exists in the direct descendants of this Element
, else returns None
.
Examples
use minidom::Element; let elem: Element = r#"<node xmlns="ns"><a /><a xmlns="other_ns" /><b /></node>"#.parse().unwrap(); assert!(elem.get_child("a", "ns").unwrap().is("a", "ns")); assert!(elem.get_child("a", "other_ns").unwrap().is("a", "other_ns")); assert!(elem.get_child("b", "ns").unwrap().is("b", "ns")); assert_eq!(elem.get_child("c", "ns"), None); assert_eq!(elem.get_child("b", "other_ns"), None); assert_eq!(elem.get_child("a", "inexistent_ns"), None);
pub fn get_child_mut<N, NS>(
&mut self,
name: N,
namespace: NS
) -> Option<&mut Element> where
N: AsRef<str>,
NS: AsRef<str>,
[src]
pub fn get_child_mut<N, NS>(
&mut self,
name: N,
namespace: NS
) -> Option<&mut Element> where
N: AsRef<str>,
NS: AsRef<str>,
Returns a mutable reference to the first child element with the specific name and namespace,
if it exists in the direct descendants of this Element
, else returns None
.
pub fn has_child<N, NS>(&self, name: N, namespace: NS) -> bool where
N: AsRef<str>,
NS: AsRef<str>,
[src]
pub fn has_child<N, NS>(&self, name: N, namespace: NS) -> bool where
N: AsRef<str>,
NS: AsRef<str>,
Returns whether a specific child with this name and namespace exists in the direct
descendants of the Element
.
Examples
use minidom::Element; let elem: Element = r#"<node xmlns="ns"><a /><a xmlns="other_ns" /><b /></node>"#.parse().unwrap(); assert_eq!(elem.has_child("a", "other_ns"), true); assert_eq!(elem.has_child("a", "ns"), true); assert_eq!(elem.has_child("a", "inexistent_ns"), false); assert_eq!(elem.has_child("b", "ns"), true); assert_eq!(elem.has_child("b", "other_ns"), false); assert_eq!(elem.has_child("b", "inexistent_ns"), false);
Trait Implementations
impl Clone for Element
[src]
impl Clone for Element
fn clone(&self) -> Element
[src]
fn clone(&self) -> Element
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl FromStr for Element
[src]
impl FromStr for Element
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Element, Error>
[src]
fn from_str(s: &str) -> Result<Element, Error>
Parses a string s
to return a value of this type. Read more
impl Debug for Element
[src]
impl Debug for Element
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Eq for Element
[src]
impl Eq for Element
impl PartialEq<Element> for Element
[src]
impl PartialEq<Element> for Element
fn eq(&self, other: &Element) -> bool
[src]
fn eq(&self, other: &Element) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Element) -> bool
[src]
fn ne(&self, other: &Element) -> bool
This method tests for !=
.
impl<'a> From<&'a Element> for String
[src]
impl<'a> From<&'a Element> for String
impl TryFrom<Element> for Body
[src]
impl TryFrom<Element> for Body
impl From<Body> for Element
[src]
impl From<Body> for Element
impl TryFrom<Element> for Subject
[src]
impl TryFrom<Element> for Subject
impl From<Subject> for Element
[src]
impl From<Subject> for Element
impl TryFrom<Element> for Thread
[src]
impl TryFrom<Element> for Thread
impl From<Thread> for Element
[src]
impl From<Thread> for Element
impl TryFrom<Element> for Message
[src]
impl TryFrom<Element> for Message
impl From<Message> for Element
[src]
impl From<Message> for Element
impl TryFrom<Element> for Presence
[src]
impl TryFrom<Element> for Presence
impl From<Presence> for Element
[src]
impl From<Presence> for Element
impl TryFrom<Element> for Iq
[src]
impl TryFrom<Element> for Iq
impl From<Iq> for Element
[src]
impl From<Iq> for Element
impl TryFrom<Element> for DefinedCondition
[src]
impl TryFrom<Element> for DefinedCondition
impl From<DefinedCondition> for Element
[src]
impl From<DefinedCondition> for Element
fn from(elem: DefinedCondition) -> Element
[src]
fn from(elem: DefinedCondition) -> Element
Performs the conversion.
impl TryFrom<Element> for StanzaError
[src]
impl TryFrom<Element> for StanzaError
impl From<StanzaError> for Element
[src]
impl From<StanzaError> for Element
fn from(err: StanzaError) -> Element
[src]
fn from(err: StanzaError) -> Element
Performs the conversion.
impl TryFrom<Element> for Stream
[src]
impl TryFrom<Element> for Stream
impl From<Stream> for Element
[src]
impl From<Stream> for Element
impl TryFrom<Element> for Auth
[src]
impl TryFrom<Element> for Auth
impl From<Auth> for Element
[src]
impl From<Auth> for Element
impl TryFrom<Element> for Challenge
[src]
impl TryFrom<Element> for Challenge
impl From<Challenge> for Element
[src]
impl From<Challenge> for Element
impl TryFrom<Element> for Response
[src]
impl TryFrom<Element> for Response
impl From<Response> for Element
[src]
impl From<Response> for Element
impl TryFrom<Element> for Abort
[src]
impl TryFrom<Element> for Abort
impl From<Abort> for Element
[src]
impl From<Abort> for Element
impl TryFrom<Element> for Success
[src]
impl TryFrom<Element> for Success
impl From<Success> for Element
[src]
impl From<Success> for Element
impl TryFrom<Element> for DefinedCondition
[src]
impl TryFrom<Element> for DefinedCondition
impl From<DefinedCondition> for Element
[src]
impl From<DefinedCondition> for Element
fn from(elem: DefinedCondition) -> Element
[src]
fn from(elem: DefinedCondition) -> Element
Performs the conversion.
impl TryFrom<Element> for Failure
[src]
impl TryFrom<Element> for Failure
impl From<Failure> for Element
[src]
impl From<Failure> for Element
impl TryFrom<Element> for Bind
[src]
impl TryFrom<Element> for Bind
impl From<Bind> for Element
[src]
impl From<Bind> for Element
impl TryFrom<Element> for Group
[src]
impl TryFrom<Element> for Group
impl From<Group> for Element
[src]
impl From<Group> for Element
impl TryFrom<Element> for Item
[src]
impl TryFrom<Element> for Item
impl From<Item> for Element
[src]
impl From<Item> for Element
impl TryFrom<Element> for Roster
[src]
impl TryFrom<Element> for Roster
impl From<Roster> for Element
[src]
impl From<Roster> for Element
impl TryFrom<Element> for Open
[src]
impl TryFrom<Element> for Open
impl From<Open> for Element
[src]
impl From<Open> for Element
impl TryFrom<Element> for Option_
[src]
impl TryFrom<Element> for Option_
impl From<Option_> for Element
[src]
impl From<Option_> for Element
impl TryFrom<Element> for Field
[src]
impl TryFrom<Element> for Field
impl From<Field> for Element
[src]
impl From<Field> for Element
impl TryFrom<Element> for DataForm
[src]
impl TryFrom<Element> for DataForm
impl From<DataForm> for Element
[src]
impl From<DataForm> for Element
impl TryFrom<Element> for DiscoInfoQuery
[src]
impl TryFrom<Element> for DiscoInfoQuery
impl From<DiscoInfoQuery> for Element
[src]
impl From<DiscoInfoQuery> for Element
fn from(elem: DiscoInfoQuery) -> Element
[src]
fn from(elem: DiscoInfoQuery) -> Element
Performs the conversion.
impl TryFrom<Element> for Feature
[src]
impl TryFrom<Element> for Feature
impl From<Feature> for Element
[src]
impl From<Feature> for Element
impl TryFrom<Element> for Identity
[src]
impl TryFrom<Element> for Identity
impl From<Identity> for Element
[src]
impl From<Identity> for Element
impl TryFrom<Element> for DiscoInfoResult
[src]
impl TryFrom<Element> for DiscoInfoResult
impl From<DiscoInfoResult> for Element
[src]
impl From<DiscoInfoResult> for Element
fn from(disco: DiscoInfoResult) -> Element
[src]
fn from(disco: DiscoInfoResult) -> Element
Performs the conversion.
impl TryFrom<Element> for DiscoItemsQuery
[src]
impl TryFrom<Element> for DiscoItemsQuery
impl From<DiscoItemsQuery> for Element
[src]
impl From<DiscoItemsQuery> for Element
fn from(elem: DiscoItemsQuery) -> Element
[src]
fn from(elem: DiscoItemsQuery) -> Element
Performs the conversion.
impl TryFrom<Element> for Item
[src]
impl TryFrom<Element> for Item
impl From<Item> for Element
[src]
impl From<Item> for Element
impl TryFrom<Element> for DiscoItemsResult
[src]
impl TryFrom<Element> for DiscoItemsResult
impl From<DiscoItemsResult> for Element
[src]
impl From<DiscoItemsResult> for Element
fn from(elem: DiscoItemsResult) -> Element
[src]
fn from(elem: DiscoItemsResult) -> Element
Performs the conversion.
impl TryFrom<Element> for History
[src]
impl TryFrom<Element> for History
impl From<History> for Element
[src]
impl From<History> for Element
impl TryFrom<Element> for Muc
[src]
impl TryFrom<Element> for Muc
impl From<Muc> for Element
[src]
impl From<Muc> for Element
impl TryFrom<Element> for Status
[src]
impl TryFrom<Element> for Status
impl From<Status> for Element
[src]
impl From<Status> for Element
impl TryFrom<Element> for Actor
[src]
impl TryFrom<Element> for Actor
impl From<Actor> for Element
[src]
impl From<Actor> for Element
impl TryFrom<Element> for Continue
[src]
impl TryFrom<Element> for Continue
impl From<Continue> for Element
[src]
impl From<Continue> for Element
impl TryFrom<Element> for Reason
[src]
impl TryFrom<Element> for Reason
impl From<Reason> for Element
[src]
impl From<Reason> for Element
impl TryFrom<Element> for Item
[src]
impl TryFrom<Element> for Item
impl From<Item> for Element
[src]
impl From<Item> for Element
impl TryFrom<Element> for MucUser
[src]
impl TryFrom<Element> for MucUser
impl From<MucUser> for Element
[src]
impl From<MucUser> for Element
impl TryFrom<Element> for Open
[src]
impl TryFrom<Element> for Open
impl From<Open> for Element
[src]
impl From<Open> for Element
impl TryFrom<Element> for Data
[src]
impl TryFrom<Element> for Data
impl From<Data> for Element
[src]
impl From<Data> for Element
impl TryFrom<Element> for Close
[src]
impl TryFrom<Element> for Close
impl From<Close> for Element
[src]
impl From<Close> for Element
impl TryFrom<Element> for Conference
[src]
impl TryFrom<Element> for Conference
impl From<Conference> for Element
[src]
impl From<Conference> for Element
fn from(elem: Conference) -> Element
[src]
fn from(elem: Conference) -> Element
Performs the conversion.
impl TryFrom<Element> for Url
[src]
impl TryFrom<Element> for Url
impl From<Url> for Element
[src]
impl From<Url> for Element
impl TryFrom<Element> for Storage
[src]
impl TryFrom<Element> for Storage
impl From<Storage> for Element
[src]
impl From<Storage> for Element
impl TryFrom<Element> for SetQuery
[src]
impl TryFrom<Element> for SetQuery
impl From<SetQuery> for Element
[src]
impl From<SetQuery> for Element
impl TryFrom<Element> for SetResult
[src]
impl TryFrom<Element> for SetResult
impl From<SetResult> for Element
[src]
impl From<SetResult> for Element
impl TryFrom<Element> for Item
[src]
impl TryFrom<Element> for Item
impl From<Item> for Element
[src]
impl From<Item> for Element
impl TryFrom<Element> for PubSubEvent
[src]
impl TryFrom<Element> for PubSubEvent
impl From<PubSubEvent> for Element
[src]
impl From<PubSubEvent> for Element
fn from(event: PubSubEvent) -> Element
[src]
fn from(event: PubSubEvent) -> Element
Performs the conversion.
impl TryFrom<Element> for Affiliations
[src]
impl TryFrom<Element> for Affiliations
impl From<Affiliations> for Element
[src]
impl From<Affiliations> for Element
fn from(elem: Affiliations) -> Element
[src]
fn from(elem: Affiliations) -> Element
Performs the conversion.
impl TryFrom<Element> for Affiliation
[src]
impl TryFrom<Element> for Affiliation
impl From<Affiliation> for Element
[src]
impl From<Affiliation> for Element
fn from(elem: Affiliation) -> Element
[src]
fn from(elem: Affiliation) -> Element
Performs the conversion.
impl TryFrom<Element> for Configure
[src]
impl TryFrom<Element> for Configure
impl From<Configure> for Element
[src]
impl From<Configure> for Element
impl TryFrom<Element> for Create
[src]
impl TryFrom<Element> for Create
impl From<Create> for Element
[src]
impl From<Create> for Element
impl TryFrom<Element> for Default
[src]
impl TryFrom<Element> for Default
impl From<Default> for Element
[src]
impl From<Default> for Element
impl TryFrom<Element> for Items
[src]
impl TryFrom<Element> for Items
impl From<Items> for Element
[src]
impl From<Items> for Element
impl TryFrom<Element> for Item
[src]
impl TryFrom<Element> for Item
impl From<Item> for Element
[src]
impl From<Item> for Element
impl TryFrom<Element> for Options
[src]
impl TryFrom<Element> for Options
impl From<Options> for Element
[src]
impl From<Options> for Element
impl TryFrom<Element> for Publish
[src]
impl TryFrom<Element> for Publish
impl From<Publish> for Element
[src]
impl From<Publish> for Element
impl TryFrom<Element> for PublishOptions
[src]
impl TryFrom<Element> for PublishOptions
impl From<PublishOptions> for Element
[src]
impl From<PublishOptions> for Element
fn from(elem: PublishOptions) -> Element
[src]
fn from(elem: PublishOptions) -> Element
Performs the conversion.
impl TryFrom<Element> for Retract
[src]
impl TryFrom<Element> for Retract
impl From<Retract> for Element
[src]
impl From<Retract> for Element
impl TryFrom<Element> for SubscribeOptions
[src]
impl TryFrom<Element> for SubscribeOptions
impl From<SubscribeOptions> for Element
[src]
impl From<SubscribeOptions> for Element
fn from(subscribe_options: SubscribeOptions) -> Element
[src]
fn from(subscribe_options: SubscribeOptions) -> Element
Performs the conversion.
impl TryFrom<Element> for Subscribe
[src]
impl TryFrom<Element> for Subscribe
impl From<Subscribe> for Element
[src]
impl From<Subscribe> for Element
impl TryFrom<Element> for Subscriptions
[src]
impl TryFrom<Element> for Subscriptions
impl From<Subscriptions> for Element
[src]
impl From<Subscriptions> for Element
fn from(elem: Subscriptions) -> Element
[src]
fn from(elem: Subscriptions) -> Element
Performs the conversion.
impl TryFrom<Element> for SubscriptionElem
[src]
impl TryFrom<Element> for SubscriptionElem
impl From<SubscriptionElem> for Element
[src]
impl From<SubscriptionElem> for Element
fn from(elem: SubscriptionElem) -> Element
[src]
fn from(elem: SubscriptionElem) -> Element
Performs the conversion.
impl TryFrom<Element> for Unsubscribe
[src]
impl TryFrom<Element> for Unsubscribe
impl From<Unsubscribe> for Element
[src]
impl From<Unsubscribe> for Element
fn from(elem: Unsubscribe) -> Element
[src]
fn from(elem: Unsubscribe) -> Element
Performs the conversion.
impl TryFrom<Element> for PubSub
[src]
impl TryFrom<Element> for PubSub
impl From<PubSub> for Element
[src]
impl From<PubSub> for Element
impl TryFrom<Element> for Query
[src]
impl TryFrom<Element> for Query
impl From<Query> for Element
[src]
impl From<Query> for Element
impl TryFrom<Element> for ChatState
[src]
impl TryFrom<Element> for ChatState
impl From<ChatState> for Element
[src]
impl From<ChatState> for Element
impl TryFrom<Element> for VersionQuery
[src]
impl TryFrom<Element> for VersionQuery
impl From<VersionQuery> for Element
[src]
impl From<VersionQuery> for Element
fn from(_: VersionQuery) -> Element
[src]
fn from(_: VersionQuery) -> Element
Performs the conversion.
impl TryFrom<Element> for VersionResult
[src]
impl TryFrom<Element> for VersionResult
impl From<VersionResult> for Element
[src]
impl From<VersionResult> for Element
fn from(elem: VersionResult) -> Element
[src]
fn from(elem: VersionResult) -> Element
Performs the conversion.
impl TryFrom<Element> for MoodEnum
[src]
impl TryFrom<Element> for MoodEnum
impl From<MoodEnum> for Element
[src]
impl From<MoodEnum> for Element
impl TryFrom<Element> for Text
[src]
impl TryFrom<Element> for Text
impl From<Text> for Element
[src]
impl From<Text> for Element
impl TryFrom<Element> for Handshake
[src]
impl TryFrom<Element> for Handshake
impl From<Handshake> for Element
[src]
impl From<Handshake> for Element
impl TryFrom<Element> for Caps
[src]
impl TryFrom<Element> for Caps
impl From<Caps> for Element
[src]
impl From<Caps> for Element
impl TryFrom<Element> for Content
[src]
impl TryFrom<Element> for Content
impl From<Content> for Element
[src]
impl From<Content> for Element
impl From<Reason> for Element
[src]
impl From<Reason> for Element
impl TryFrom<Element> for ReasonElement
[src]
impl TryFrom<Element> for ReasonElement
impl From<ReasonElement> for Element
[src]
impl From<ReasonElement> for Element
fn from(reason: ReasonElement) -> Element
[src]
fn from(reason: ReasonElement) -> Element
Performs the conversion.
impl TryFrom<Element> for Jingle
[src]
impl TryFrom<Element> for Jingle
impl From<Jingle> for Element
[src]
impl From<Jingle> for Element
impl TryFrom<Element> for Nick
[src]
impl TryFrom<Element> for Nick
impl From<Nick> for Element
[src]
impl From<Nick> for Element
impl TryFrom<Element> for Request
[src]
impl TryFrom<Element> for Request
impl From<Request> for Element
[src]
impl From<Request> for Element
impl TryFrom<Element> for Received
[src]
impl TryFrom<Element> for Received
impl From<Received> for Element
[src]
impl From<Received> for Element
impl TryFrom<Element> for BlocklistRequest
[src]
impl TryFrom<Element> for BlocklistRequest
impl From<BlocklistRequest> for Element
[src]
impl From<BlocklistRequest> for Element
fn from(_: BlocklistRequest) -> Element
[src]
fn from(_: BlocklistRequest) -> Element
Performs the conversion.
impl TryFrom<Element> for BlocklistResult
[src]
impl TryFrom<Element> for BlocklistResult
impl From<BlocklistResult> for Element
[src]
impl From<BlocklistResult> for Element
fn from(elem: BlocklistResult) -> Element
[src]
fn from(elem: BlocklistResult) -> Element
Performs the conversion.
impl TryFrom<Element> for Block
[src]
impl TryFrom<Element> for Block
impl From<Block> for Element
[src]
impl From<Block> for Element
impl TryFrom<Element> for Unblock
[src]
impl TryFrom<Element> for Unblock
impl From<Unblock> for Element
[src]
impl From<Unblock> for Element
impl TryFrom<Element> for Blocked
[src]
impl TryFrom<Element> for Blocked
impl From<Blocked> for Element
[src]
impl From<Blocked> for Element
impl TryFrom<Element> for A
[src]
impl TryFrom<Element> for A
impl From<A> for Element
[src]
impl From<A> for Element
impl TryFrom<Element> for Enable
[src]
impl TryFrom<Element> for Enable
impl From<Enable> for Element
[src]
impl From<Enable> for Element
impl TryFrom<Element> for Enabled
[src]
impl TryFrom<Element> for Enabled
impl From<Enabled> for Element
[src]
impl From<Enabled> for Element
impl TryFrom<Element> for Failed
[src]
impl TryFrom<Element> for Failed
impl From<Failed> for Element
[src]
impl From<Failed> for Element
impl TryFrom<Element> for R
[src]
impl TryFrom<Element> for R
impl From<R> for Element
[src]
impl From<R> for Element
impl TryFrom<Element> for Resume
[src]
impl TryFrom<Element> for Resume
impl From<Resume> for Element
[src]
impl From<Resume> for Element
impl TryFrom<Element> for Resumed
[src]
impl TryFrom<Element> for Resumed
impl From<Resumed> for Element
[src]
impl From<Resumed> for Element
impl TryFrom<Element> for StreamManagement
[src]
impl TryFrom<Element> for StreamManagement
impl From<StreamManagement> for Element
[src]
impl From<StreamManagement> for Element
fn from(_: StreamManagement) -> Element
[src]
fn from(_: StreamManagement) -> Element
Performs the conversion.
impl TryFrom<Element> for Ping
[src]
impl TryFrom<Element> for Ping
impl From<Ping> for Element
[src]
impl From<Ping> for Element
impl TryFrom<Element> for Delay
[src]
impl TryFrom<Element> for Delay
impl From<Delay> for Element
[src]
impl From<Delay> for Element
impl TryFrom<Element> for URI
[src]
impl TryFrom<Element> for URI
impl From<URI> for Element
[src]
impl From<URI> for Element
impl TryFrom<Element> for MediaElement
[src]
impl TryFrom<Element> for MediaElement
impl From<MediaElement> for Element
[src]
impl From<MediaElement> for Element
fn from(elem: MediaElement) -> Element
[src]
fn from(elem: MediaElement) -> Element
Performs the conversion.
impl TryFrom<Element> for Attention
[src]
impl TryFrom<Element> for Attention
impl From<Attention> for Element
[src]
impl From<Attention> for Element
impl TryFrom<Element> for Range
[src]
impl TryFrom<Element> for Range
impl From<Range> for Element
[src]
impl From<Range> for Element
impl TryFrom<Element> for File
[src]
impl TryFrom<Element> for File
impl From<File> for Element
[src]
impl From<File> for Element
impl TryFrom<Element> for Description
[src]
impl TryFrom<Element> for Description
impl From<Description> for Element
[src]
impl From<Description> for Element
fn from(description: Description) -> Element
[src]
fn from(description: Description) -> Element
Performs the conversion.
impl TryFrom<Element> for Checksum
[src]
impl TryFrom<Element> for Checksum
impl From<Checksum> for Element
[src]
impl From<Checksum> for Element
impl TryFrom<Element> for Received
[src]
impl TryFrom<Element> for Received
impl From<Received> for Element
[src]
impl From<Received> for Element
impl TryFrom<Element> for Candidate
[src]
impl TryFrom<Element> for Candidate
impl From<Candidate> for Element
[src]
impl From<Candidate> for Element
impl TryFrom<Element> for Transport
[src]
impl TryFrom<Element> for Transport
impl From<Transport> for Element
[src]
impl From<Transport> for Element
impl TryFrom<Element> for Transport
[src]
impl TryFrom<Element> for Transport
impl From<Transport> for Element
[src]
impl From<Transport> for Element
impl TryFrom<Element> for Forwarded
[src]
impl TryFrom<Element> for Forwarded
impl From<Forwarded> for Element
[src]
impl From<Forwarded> for Element
impl TryFrom<Element> for Hash
[src]
impl TryFrom<Element> for Hash
impl From<Hash> for Element
[src]
impl From<Hash> for Element
impl TryFrom<Element> for Replace
[src]
impl TryFrom<Element> for Replace
impl From<Replace> for Element
[src]
impl From<Replace> for Element
impl TryFrom<Element> for Query
[src]
impl TryFrom<Element> for Query
impl From<Query> for Element
[src]
impl From<Query> for Element
impl TryFrom<Element> for Result_
[src]
impl TryFrom<Element> for Result_
impl From<Result_> for Element
[src]
impl From<Result_> for Element
impl TryFrom<Element> for Fin
[src]
impl TryFrom<Element> for Fin
impl From<Fin> for Element
[src]
impl From<Fin> for Element
impl TryFrom<Element> for Prefs
[src]
impl TryFrom<Element> for Prefs
impl From<Prefs> for Element
[src]
impl From<Prefs> for Element
impl TryFrom<Element> for Idle
[src]
impl TryFrom<Element> for Idle
impl From<Idle> for Element
[src]
impl From<Idle> for Element
impl TryFrom<Element> for JingleMI
[src]
impl TryFrom<Element> for JingleMI
impl From<JingleMI> for Element
[src]
impl From<JingleMI> for Element
impl TryFrom<Element> for StanzaId
[src]
impl TryFrom<Element> for StanzaId
impl From<StanzaId> for Element
[src]
impl From<StanzaId> for Element
impl TryFrom<Element> for OriginId
[src]
impl TryFrom<Element> for OriginId
impl From<OriginId> for Element
[src]
impl From<OriginId> for Element
impl TryFrom<Element> for ExplicitMessageEncryption
[src]
impl TryFrom<Element> for ExplicitMessageEncryption
impl From<ExplicitMessageEncryption> for Element
[src]
impl From<ExplicitMessageEncryption> for Element
fn from(elem: ExplicitMessageEncryption) -> Element
[src]
fn from(elem: ExplicitMessageEncryption) -> Element
Performs the conversion.
impl TryFrom<Element> for ECaps2
[src]
impl TryFrom<Element> for ECaps2
impl From<ECaps2> for Element
[src]
impl From<ECaps2> for Element