DKIM record management API

This commit is contained in:
mdecimus
2024-04-04 11:51:47 +02:00
parent 93a2f691ea
commit 3a5ca70365
16 changed files with 564 additions and 141 deletions

View File

@@ -217,3 +217,36 @@ impl Config {
}
}
}
impl From<(String, String)> for ConfigKey {
fn from((key, value): (String, String)) -> Self {
Self { key, value }
}
}
impl From<(&str, &str)> for ConfigKey {
fn from((key, value): (&str, &str)) -> Self {
Self {
key: key.to_string(),
value: value.to_string(),
}
}
}
impl From<(&str, String)> for ConfigKey {
fn from((key, value): (&str, String)) -> Self {
Self {
key: key.to_string(),
value,
}
}
}
impl From<(String, &str)> for ConfigKey {
fn from((key, value): (String, &str)) -> Self {
Self {
key,
value: value.to_string(),
}
}
}