ping, iq: Implement ping::serialise_ping and link to Iq.
This commit is contained in:
parent
b259ab9ef2
commit
c462d230f1
2 changed files with 9 additions and 0 deletions
|
|
@ -18,6 +18,10 @@ pub fn parse_ping(root: &Element) -> Result<Ping, Error> {
|
|||
Ok(Ping { })
|
||||
}
|
||||
|
||||
pub fn serialise_ping() -> Element {
|
||||
Element::builder("ping").ns(ns::PING).build()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use minidom::Element;
|
||||
|
|
|
|||
Loading…
Reference in a new issue