From 0c6772aa7d744dc48be166846629c48ae50278ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Wed, 18 Feb 2026 17:16:52 +0100 Subject: [PATCH] parsers: derive Default for ibr::LegacyQuery Very useful when composing a query. --- parsers/ChangeLog | 2 ++ parsers/src/ibr.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/parsers/ChangeLog b/parsers/ChangeLog index 28e19280..e80ee6cf 100644 --- a/parsers/ChangeLog +++ b/parsers/ChangeLog @@ -12,6 +12,8 @@ XXXX-YY-ZZ RELEASER * Improvements: - Make Priority’s inner i8 pub, which had been broken since the conversion to xso. (!632) + - ibr::LegacyQuery now implements Default, allowing users to more + easily construct it (!660) Version 0.22.0: 2025-10-28 pep diff --git a/parsers/src/ibr.rs b/parsers/src/ibr.rs index fa0ac5f7..eb6f6df3 100644 --- a/parsers/src/ibr.rs +++ b/parsers/src/ibr.rs @@ -30,7 +30,7 @@ pub struct RemoveQuery { impl IqSetPayload for RemoveQuery {} /// Query for registering against a service, the legacy way. -#[derive(FromXml, AsXml, Debug, Clone)] +#[derive(FromXml, AsXml, Debug, Clone, Default)] #[xml(namespace = ns::REGISTER, name = "query")] pub struct LegacyQuery { /// Whether this account is already registered