Skip to content

Commit

Permalink
Merge branch 'babolivier/message_serialize' of github.com:thunderbird…
Browse files Browse the repository at this point in the history
…/ews-rs into babolivier/message_serialize
  • Loading branch information
babolivier committed May 23, 2024
2 parents a96aa91 + a7dc310 commit 944aede
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/types/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ pub enum AttachmentItem {
pub struct DateTime(#[serde(with = "time::serde::iso8601")] pub time::OffsetDateTime);

impl XmlSerialize for DateTime {
/// Serialize this `DateTime` as an XML content node, by formatting the
/// innder [`time::OffsetDateTime`] to an ISO 8601 compliant string.
/// Serializes a `DateTime` as an XML text content node by formatting the
/// inner [`time::OffsetDateTime`] as an ISO 8601-compliant string.
fn serialize_child_nodes<W>(
&self,
writer: &mut quick_xml::Writer<W>,
Expand Down Expand Up @@ -548,6 +548,7 @@ pub struct Mailbox {
///
/// See <https://learn.microsoft.com/en-us/exchange/client-developer/web-service-reference/routingtype-emailaddress>
#[derive(Clone, Copy, Debug, Default, Deserialize, XmlSerialize)]
#[xml_struct(text)]
pub enum RoutingType {
#[default]
SMTP,
Expand All @@ -558,6 +559,7 @@ pub enum RoutingType {
///
/// See <https://learn.microsoft.com/en-us/exchange/client-developer/web-service-reference/mailboxtype>
#[derive(Clone, Copy, Debug, Deserialize, XmlSerialize)]
#[xml_struct(text)]
pub enum MailboxType {
Mailbox,
PublicDL,
Expand All @@ -573,6 +575,7 @@ pub enum MailboxType {
///
/// See <https://learn.microsoft.com/en-us/exchange/client-developer/web-service-reference/importance>
#[derive(Clone, Copy, Debug, Deserialize, XmlSerialize)]
#[xml_struct(text)]
pub enum Importance {
Low,
Normal,
Expand All @@ -593,6 +596,7 @@ pub struct StringElement {
///
/// See <https://learn.microsoft.com/en-us/exchange/client-developer/web-service-reference/sensitivity>
#[derive(Clone, Copy, Debug, Deserialize, XmlSerialize)]
#[xml_struct(text)]
pub enum Sensitivity {
Normal,
Personal,
Expand Down

0 comments on commit 944aede

Please sign in to comment.