parsers: derive Default for ibr::LegacyQuery

Very useful when composing a query.
This commit is contained in:
Jonas Schäfer 2026-02-18 17:16:52 +01:00 committed by Link Mauve
commit 0c6772aa7d
2 changed files with 3 additions and 1 deletions

View file

@ -12,6 +12,8 @@ XXXX-YY-ZZ RELEASER <admin@example.com>
* Improvements:
- Make Prioritys 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 <pep@bouah.net>

View file

@ -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