aboutsummaryrefslogtreecommitdiff
path: root/src/mail/user.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-11-01 16:45:29 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-11-01 16:45:29 +0100
commit8ac3a8ce8ba268a3261e23694b8b62afa6a3ae37 (patch)
tree0ffa2cf006c592f184df693f216ebcaeb07c2876 /src/mail/user.rs
parent3026b217774a51e01cca1ae584fba8c6398754cc (diff)
downloadaerogramme-8ac3a8ce8ba268a3261e23694b8b62afa6a3ae37.tar.gz
aerogramme-8ac3a8ce8ba268a3261e23694b8b62afa6a3ae37.zip
implement an AnyCredentials
Diffstat (limited to 'src/mail/user.rs')
-rw-r--r--src/mail/user.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mail/user.rs b/src/mail/user.rs
index 5523c2a..9d94563 100644
--- a/src/mail/user.rs
+++ b/src/mail/user.rs
@@ -30,9 +30,11 @@ pub const INBOX: &str = "INBOX";
const MAILBOX_LIST_PK: &str = "mailboxes";
const MAILBOX_LIST_SK: &str = "list";
-pub struct User {
+use crate::storage::*;
+
+pub struct User<T: Sto> {
pub username: String,
- pub creds: Credentials,
+ pub creds: Credentials<T>,
pub k2v: K2vClient,
pub mailboxes: std::sync::Mutex<HashMap<UniqueIdent, Weak<Mailbox>>>,