wip: designing acme

This commit is contained in:
Jun Kurihara 2024-07-13 05:07:57 +09:00
commit 63f9d1dabc
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
3 changed files with 87 additions and 51 deletions

View file

@ -15,14 +15,14 @@ enum FileType {
Cert,
}
#[derive(Debug)]
#[derive(Debug, PartialEq, Eq)]
pub struct DirCache {
account_dir: PathBuf,
cert_dir: PathBuf,
pub(super) account_dir: PathBuf,
pub(super) cert_dir: PathBuf,
}
impl DirCache {
pub fn new<P>(dir: P, server_name: impl AsRef<Path>) -> Self
pub fn new<P>(dir: P, server_name: &str) -> Self
where
P: AsRef<Path>,
{