Skip to content

Commit

Permalink
Tweak to add impl to support no Header
Browse files Browse the repository at this point in the history
  • Loading branch information
tobypilling committed Nov 15, 2024
1 parent 4061a4a commit 8ffc089
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/types/soap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vec<u8>>) -> Result<(), Error> {
// No-op for empty header
Ok(())
}
}

/// A SOAP envelope containing the body of an EWS operation or response.
///
/// See <https://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383494>
Expand Down

0 comments on commit 8ffc089

Please sign in to comment.