pub struct PostgresConfig {
pub version: String,
pub database_name: String,
pub deployment_mode: PostgresDeploymentMode,
pub standalone: Option<PostgresStandaloneConfig>,
pub in_cluster: Option<PostgresInClusterConfig>,
}Expand description
PostgreSQL configuration
Fields§
§version: StringPostgreSQL version
database_name: StringDatabase name
deployment_mode: PostgresDeploymentModeDeployment mode
standalone: Option<PostgresStandaloneConfig>Configuration for standalone mode
in_cluster: Option<PostgresInClusterConfig>Configuration for in-cluster mode
Trait Implementations§
Source§impl Clone for PostgresConfig
impl Clone for PostgresConfig
Source§fn clone(&self) -> PostgresConfig
fn clone(&self) -> PostgresConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PostgresConfig
impl Debug for PostgresConfig
Source§impl<'de> Deserialize<'de> for PostgresConfig
impl<'de> Deserialize<'de> for PostgresConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PostgresConfig
impl Serialize for PostgresConfig
Source§impl Validate for PostgresConfig
impl Validate for PostgresConfig
Source§impl<'v_a> ValidateArgs<'v_a> for PostgresConfig
impl<'v_a> ValidateArgs<'v_a> for PostgresConfig
Auto Trait Implementations§
impl Freeze for PostgresConfig
impl RefUnwindSafe for PostgresConfig
impl Send for PostgresConfig
impl Sync for PostgresConfig
impl Unpin for PostgresConfig
impl UnwindSafe for PostgresConfig
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