|
@@ -2,7 +2,7 @@ use serde_aux::field_attributes::deserialize_number_from_string;
|
|
|
use sqlx::postgres::{PgConnectOptions, PgSslMode};
|
|
|
use std::convert::{TryFrom, TryInto};
|
|
|
|
|
|
-#[derive(serde::Deserialize, Clone)]
|
|
|
+#[derive(serde::Deserialize, Clone, Debug)]
|
|
|
pub struct Settings {
|
|
|
pub database: DatabaseSettings,
|
|
|
pub application: ApplicationSettings,
|
|
@@ -16,7 +16,7 @@ pub struct Settings {
|
|
|
// any network interface. So using 127.0.0.1 for our local development and set
|
|
|
// it to 0.0.0.0 in our Docker images.
|
|
|
//
|
|
|
-#[derive(serde::Deserialize, Clone)]
|
|
|
+#[derive(serde::Deserialize, Clone, Debug)]
|
|
|
pub struct ApplicationSettings {
|
|
|
#[serde(deserialize_with = "deserialize_number_from_string")]
|
|
|
pub port: u16,
|