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