Emmanuel Gil Peyrot
9410849d7a
Rename the xmpp-parsers directory to parsers
...
This doesn’t change anything to the name of the crate, just makes
autocompletion easier by not sharing the same prefix as the xmpp crate.
2021-10-11 08:24:16 +02:00
Paul Fariello
cc3773aca1
Set subscribe element optional and add corresponding parsing
2021-01-12 22:55:49 +01:00
Paul Fariello
c945eb0d3b
Add options to pubsub::PubSub::Subscribe element
...
And reorder according to schemas definition in xep
2021-01-12 22:55:49 +01:00
Paul Fariello
ebf096488b
Add missing Subscribe element in PubSub enum
2021-01-12 22:55:49 +01:00
Paul Fariello
cc4e0c247e
Implement all sub element of pubsub#owner
2021-01-12 22:44:42 +01:00
Emmanuel Gil Peyrot
923a054b81
xmpp-parsers: Make everything PartialEq! \o/
2021-01-12 17:05:38 +01:00
Emmanuel Gil Peyrot
f34897b198
xmpp-parsers: Prefer Bare/FromJid::new to FromStr::from_str.
2020-12-10 21:13:55 +01:00
Maxime “pep” Buquet
6308250c17
parsers: update for minidom API changes
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-21 22:23:36 +02:00
Paul Fariello
34a87e22a8
Fix fmt
2019-12-30 11:28:52 +01:00
Paul Fariello
6b14b593d3
Add serialization test for pubsub publish-options and options element
2019-12-30 11:20:37 +01:00
Paul Fariello
0d879eb231
Add more test on Optionnal, Required children serialization
2019-12-30 11:20:37 +01:00
Maxime “pep” Buquet
3c92f849d3
pubsub: Add serialization test for configure element
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-01 03:16:24 +01:00
Maxime “pep” Buquet
1c5551a917
minidom: Implement PartialEq manually for Node and Element
...
Move the NamespaceAwareCompare implementation from xmpp-parsers as Node
and Element's PartialEq implementation. Thanks Astro!
It's a lot more useful in tests to use `assert_eq!` than `assert!`, so
we get both items compared (left and right) instead of a "it failed."
message.
This "breaks" comparison for these two structs in the sense that it is
not strict object comparison anymore but it ensures that namespaces are
all present in the compared objects.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-29 16:02:23 +01:00
Maxime “pep” Buquet
a104ebc3f6
Rustfmt pass, and rustfmt --check in CI"
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-23 01:36:02 +02:00
Maxime “pep” Buquet
dc76f296de
Prepare for merge: Move all xmpp-parsers files into xmpp-parsers/
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-18 13:47:10 +02:00