aboutsummaryrefslogtreecommitdiff
path: root/src/mail_uuid.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-31 17:07:34 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-31 17:07:34 +0200
commit553a15a82a700792986b23cb89e2a8ec070cc27d (patch)
tree8ea039322b39064fa8c66d9647f84b79f64f1921 /src/mail_uuid.rs
parent01d82c14ca61e7c4de1e72c5f94456610464c064 (diff)
downloadaerogramme-553a15a82a700792986b23cb89e2a8ec070cc27d.tar.gz
aerogramme-553a15a82a700792986b23cb89e2a8ec070cc27d.zip
Implementn basic LMTP server
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)
}
}