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