Struct libstrophe::StanzaRef
[−]
[src]
pub struct StanzaRef<'cx>(_);
Wrapper for constant ref to Stanza
, implements Deref
to Stanza
You can obtain such objects by calling Stanza
child search methods.
Methods from Deref<Target = Stanza<'cx>>
fn as_inner(&self) -> *const xmpp_stanza_t
[src]
Return internal raw pointer to stanza, for internal use
fn context(&self) -> ContextRef<'cx>
[src]
Return context for this Stanza
The underlying library does not provide direct access to its context so this method works this around by relying on some of the library internals. With the new version this might need rewriting.
fn is_text(&self) -> bool
[src]
fn is_tag(&self) -> bool
[src]
fn to_text(&self) -> Result<String>
[src]
fn name(&self) -> Option<&str>
[src]
fn attribute_count(&self) -> i32
[src]
fn get_attribute<RefStr: AsRef<str>>(&self, name: RefStr) -> Option<&str>
[src]
fn attributes(&self) -> HashMap<&str, &str>
[src]
This method returns data as HashMap
unlike underlying function.
fn text(&self) -> Option<String>
[src]
fn id(&self) -> Option<&str>
[src]
fn ns(&self) -> Option<&str>
[src]
fn stanza_type(&self) -> Option<&str>
[src]
fn to(&self) -> Option<&str>
[src]
fn from(&self) -> Option<&str>
[src]
fn get_first_child(&self) -> Option<StanzaRef>
[src]
fn get_first_child_mut(&self) -> Option<StanzaMutRef>
[src]
fn get_child_by_ns<RefStr: AsRef<str>>(&self, ns: RefStr) -> Option<StanzaRef>
[src]
fn get_child_by_name<RefStr: AsRef<str>>(
&self,
name: RefStr
) -> Option<StanzaRef>
[src]
&self,
name: RefStr
) -> Option<StanzaRef>