1 2 3 4 5 6 7 8 9 10 11
use url::Url; #[derive(Clone, Debug)] pub struct Config { /// Строка подключения к БД /// /// Примеры: /// /// - ```Url::parse("postgres://user:password@localhost:5432/db_name")?``` pub connection_string: Url, }