xmpp-parsers: Switch to #[xml(lang)] wherever it’s possible

So far this new meta doesn’t work for the BTreeMap<Lang, String>
pattern, which is often used to provide multiple versions of a payload.

skip-changelog: This isn’t a user-facing change.
This commit is contained in:
Link Mauve 2025-04-23 21:57:52 +02:00
commit 7f0a7b2247
4 changed files with 4 additions and 4 deletions

View file

@ -139,7 +139,7 @@ impl AsOptionalXmlText for Type {
/// The main structure representing the `<presence/>` stanza.
#[derive(FromXml, AsXml, Debug, Clone, PartialEq)]
#[xml(namespace = ns::DEFAULT_NS, name = "presence", discard(attribute = "xml:lang"))]
#[xml(namespace = ns::DEFAULT_NS, name = "presence")]
pub struct Presence {
/// The sender of this presence.
#[xml(attribute(default))]