pub struct PostgresSourceConfig {
pub host: String,
pub port: u16,
pub database: String,
pub user: String,
pub password: String,
pub tables: Vec<String>,
pub slot_name: String,
pub publication_name: String,
pub ssl_mode: SslMode,
pub table_keys: Vec<TableKeyConfig>,
}Expand description
PostgreSQL replication source configuration
Fields§
§host: StringPostgreSQL host
port: u16PostgreSQL port
database: StringDatabase name
user: StringDatabase user
password: StringDatabase password
tables: Vec<String>Tables to replicate
slot_name: StringReplication slot name
publication_name: StringPublication name
ssl_mode: SslModeSSL mode
table_keys: Vec<TableKeyConfig>Table key configurations
Implementations§
Trait Implementations§
Source§impl Clone for PostgresSourceConfig
impl Clone for PostgresSourceConfig
Source§fn clone(&self) -> PostgresSourceConfig
fn clone(&self) -> PostgresSourceConfig
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 PostgresSourceConfig
impl Debug for PostgresSourceConfig
Source§impl<'de> Deserialize<'de> for PostgresSourceConfig
impl<'de> Deserialize<'de> for PostgresSourceConfig
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 PartialEq for PostgresSourceConfig
impl PartialEq for PostgresSourceConfig
Source§impl Serialize for PostgresSourceConfig
impl Serialize for PostgresSourceConfig
impl StructuralPartialEq for PostgresSourceConfig
Auto Trait Implementations§
impl Freeze for PostgresSourceConfig
impl RefUnwindSafe for PostgresSourceConfig
impl Send for PostgresSourceConfig
impl Sync for PostgresSourceConfig
impl Unpin for PostgresSourceConfig
impl UnwindSafe for PostgresSourceConfig
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