pub struct PostgresInstallerConfig {
pub container_name: String,
pub version: String,
pub port: u16,
pub username: String,
pub password: String,
pub data_dir: Option<String>,
pub env_vars: HashMap<String, String>,
pub persistent: bool,
}
Expand description
PostgreSQL installer configuration
Fields§
§container_name: String
Container name for PostgreSQL
version: String
PostgreSQL version to install
port: u16
Port to expose PostgreSQL on
username: String
Username for PostgreSQL
password: String
Password for PostgreSQL
data_dir: Option<String>
Data directory for PostgreSQL
env_vars: HashMap<String, String>
Environment variables for PostgreSQL
persistent: bool
Whether to use persistent storage
Implementations§
Source§impl PostgresInstallerConfig
impl PostgresInstallerConfig
Sourcepub fn container_name(self, name: &str) -> Self
pub fn container_name(self, name: &str) -> Self
Set the container name
Sourcepub fn persistent(self, persistent: bool) -> Self
pub fn persistent(self, persistent: bool) -> Self
Set whether to use persistent storage
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PostgresInstallerConfig
impl RefUnwindSafe for PostgresInstallerConfig
impl Send for PostgresInstallerConfig
impl Sync for PostgresInstallerConfig
impl Unpin for PostgresInstallerConfig
impl UnwindSafe for PostgresInstallerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more