aboutsummaryrefslogtreecommitdiff
path: root/src/mail_uuid.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mail_uuid.rs')
-rw-r--r--src/mail_uuid.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mail_uuid.rs b/src/mail_uuid.rs
index d0d582f..b784e78 100644
--- a/src/mail_uuid.rs
+++ b/src/mail_uuid.rs
@@ -71,6 +71,12 @@ impl Serialize for MailUuid {
where
S: Serializer,
{
- serializer.serialize_str(&hex::encode(self.0))
+ serializer.serialize_str(&self.to_string())
+ }
+}
+
+impl ToString for MailUuid {
+ fn to_string(&self) -> String {
+ hex::encode(self.0)
}
}