From 8ffc089fb53e2eb948cfd7b6d8d2c55771f226d4 Mon Sep 17 00:00:00 2001 From: tobypilling Date: Fri, 15 Nov 2024 18:58:00 -0500 Subject: [PATCH] Tweak to add impl to support no Header --- src/types/soap.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/types/soap.rs b/src/types/soap.rs index 6e6511e..930a757 100644 --- a/src/types/soap.rs +++ b/src/types/soap.rs @@ -80,6 +80,14 @@ impl SoapHeader for RequestServerVersion { } } +// Implement `SoapHeader` for `()` to represent an empty or no-op header +impl SoapHeader for () { + fn serialize_header(&self, _writer: &mut Writer>) -> Result<(), Error> { + // No-op for empty header + Ok(()) + } +} + /// A SOAP envelope containing the body of an EWS operation or response. /// /// See