Some checks failed
CI / Check / Test (push) Has been cancelled
Reviewed-on: #26
17 lines
334 B
Rust
17 lines
334 B
Rust
use std::fmt;
|
|
|
|
use serde::Deserialize;
|
|
|
|
#[derive(Clone, Deserialize)]
|
|
pub struct DatabaseConfig {
|
|
pub url: String,
|
|
}
|
|
|
|
impl fmt::Debug for DatabaseConfig {
|
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
f.debug_struct("DatabaseConfig")
|
|
.field("url", &"<redacted>")
|
|
.finish()
|
|
}
|
|
}
|