#[non_exhaustive]pub struct PostgresqlSourceConfig {
pub include_objects: Option<PostgresqlRdbms>,
pub exclude_objects: Option<PostgresqlRdbms>,
pub replication_slot: String,
pub publication: String,
pub max_concurrent_backfill_tasks: i32,
/* private fields */
}Expand description
PostgreSQL data source configuration
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.include_objects: Option<PostgresqlRdbms>PostgreSQL objects to include in the stream.
exclude_objects: Option<PostgresqlRdbms>PostgreSQL objects to exclude from the stream.
replication_slot: StringRequired. Immutable. The name of the logical replication slot that’s configured with the pgoutput plugin.
publication: StringRequired. The name of the publication that includes the set of all tables that are defined in the stream’s include_objects.
max_concurrent_backfill_tasks: i32Maximum number of concurrent backfill tasks. The number should be non negative. If not set (or set to 0), the system’s default value will be used.
Implementations§
Source§impl PostgresqlSourceConfig
impl PostgresqlSourceConfig
pub fn new() -> Self
Sourcepub fn set_include_objects<T: Into<Option<PostgresqlRdbms>>>(self, v: T) -> Self
pub fn set_include_objects<T: Into<Option<PostgresqlRdbms>>>(self, v: T) -> Self
Sets the value of include_objects.
Sourcepub fn set_exclude_objects<T: Into<Option<PostgresqlRdbms>>>(self, v: T) -> Self
pub fn set_exclude_objects<T: Into<Option<PostgresqlRdbms>>>(self, v: T) -> Self
Sets the value of exclude_objects.
Sourcepub fn set_replication_slot<T: Into<String>>(self, v: T) -> Self
pub fn set_replication_slot<T: Into<String>>(self, v: T) -> Self
Sets the value of replication_slot.
Sourcepub fn set_publication<T: Into<String>>(self, v: T) -> Self
pub fn set_publication<T: Into<String>>(self, v: T) -> Self
Sets the value of publication.
Sourcepub fn set_max_concurrent_backfill_tasks<T: Into<i32>>(self, v: T) -> Self
pub fn set_max_concurrent_backfill_tasks<T: Into<i32>>(self, v: T) -> Self
Sets the value of max_concurrent_backfill_tasks.
Trait Implementations§
Source§impl Clone for PostgresqlSourceConfig
impl Clone for PostgresqlSourceConfig
Source§fn clone(&self) -> PostgresqlSourceConfig
fn clone(&self) -> PostgresqlSourceConfig
Returns a copy 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 PostgresqlSourceConfig
impl Debug for PostgresqlSourceConfig
Source§impl Default for PostgresqlSourceConfig
impl Default for PostgresqlSourceConfig
Source§fn default() -> PostgresqlSourceConfig
fn default() -> PostgresqlSourceConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PostgresqlSourceConfigwhere
PostgresqlSourceConfig: Default,
impl<'de> Deserialize<'de> for PostgresqlSourceConfigwhere
PostgresqlSourceConfig: Default,
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 Message for PostgresqlSourceConfig
impl Message for PostgresqlSourceConfig
Source§impl PartialEq for PostgresqlSourceConfig
impl PartialEq for PostgresqlSourceConfig
Source§impl Serialize for PostgresqlSourceConfig
impl Serialize for PostgresqlSourceConfig
impl StructuralPartialEq for PostgresqlSourceConfig
Auto Trait Implementations§
impl Freeze for PostgresqlSourceConfig
impl RefUnwindSafe for PostgresqlSourceConfig
impl Send for PostgresqlSourceConfig
impl Sync for PostgresqlSourceConfig
impl Unpin for PostgresqlSourceConfig
impl UnwindSafe for PostgresqlSourceConfig
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