Fault-tolerant delivery system

This commit is contained in:
Alphonse Paix
2025-09-04 02:54:49 +02:00
parent d47fba5cc9
commit 3057fdc927
31 changed files with 872 additions and 116 deletions

View File

@@ -55,7 +55,7 @@ impl TryFrom<String> for Environment {
}
}
#[derive(Deserialize)]
#[derive(Clone, Deserialize)]
pub struct Settings {
pub application: ApplicationSettings,
pub database: DatabaseSettings,
@@ -63,7 +63,7 @@ pub struct Settings {
pub redis_uri: SecretString,
}
#[derive(Deserialize)]
#[derive(Clone, Deserialize)]
pub struct ApplicationSettings {
#[serde(deserialize_with = "deserialize_number_from_string")]
pub port: u16,
@@ -71,7 +71,7 @@ pub struct ApplicationSettings {
pub base_url: String,
}
#[derive(Deserialize)]
#[derive(Clone, Deserialize)]
pub struct EmailClientSettings {
pub base_url: String,
sender_email: String,
@@ -100,7 +100,7 @@ impl EmailClientSettings {
}
}
#[derive(Deserialize)]
#[derive(Clone, Deserialize)]
pub struct DatabaseSettings {
pub username: String,
pub password: SecretString,