spring_postgres/config.rs
1use schemars::JsonSchema;
2use serde::Deserialize;
3use spring::config::Configurable;
4
5#[derive(Debug, Configurable, Clone, JsonSchema, Deserialize)]
6#[config_prefix = "postgres"]
7pub struct PgConfig {
8 /// The URI for connecting to the postgres. For example:
9 /// * postgresql: `postgres://root:12341234@localhost:5432/myapp_development`
10 ///
11 /// Please refer to [tokio_postgres::Config] for details.
12 pub connect: String,
13}