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

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