#[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
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>(self, v: T) -> Selfwhere
T: Into<PostgresqlRdbms>,
pub fn set_include_objects<T>(self, v: T) -> Selfwhere
T: Into<PostgresqlRdbms>,
Sets the value of include_objects.
§Example
use google_cloud_datastream_v1::model::PostgresqlRdbms;
let x = PostgresqlSourceConfig::new().set_include_objects(PostgresqlRdbms::default()/* use setters */);Sourcepub fn set_or_clear_include_objects<T>(self, v: Option<T>) -> Selfwhere
T: Into<PostgresqlRdbms>,
pub fn set_or_clear_include_objects<T>(self, v: Option<T>) -> Selfwhere
T: Into<PostgresqlRdbms>,
Sets or clears the value of include_objects.
§Example
use google_cloud_datastream_v1::model::PostgresqlRdbms;
let x = PostgresqlSourceConfig::new().set_or_clear_include_objects(Some(PostgresqlRdbms::default()/* use setters */));
let x = PostgresqlSourceConfig::new().set_or_clear_include_objects(None::<PostgresqlRdbms>);Sourcepub fn set_exclude_objects<T>(self, v: T) -> Selfwhere
T: Into<PostgresqlRdbms>,
pub fn set_exclude_objects<T>(self, v: T) -> Selfwhere
T: Into<PostgresqlRdbms>,
Sets the value of exclude_objects.
§Example
use google_cloud_datastream_v1::model::PostgresqlRdbms;
let x = PostgresqlSourceConfig::new().set_exclude_objects(PostgresqlRdbms::default()/* use setters */);Sourcepub fn set_or_clear_exclude_objects<T>(self, v: Option<T>) -> Selfwhere
T: Into<PostgresqlRdbms>,
pub fn set_or_clear_exclude_objects<T>(self, v: Option<T>) -> Selfwhere
T: Into<PostgresqlRdbms>,
Sets or clears the value of exclude_objects.
§Example
use google_cloud_datastream_v1::model::PostgresqlRdbms;
let x = PostgresqlSourceConfig::new().set_or_clear_exclude_objects(Some(PostgresqlRdbms::default()/* use setters */));
let x = PostgresqlSourceConfig::new().set_or_clear_exclude_objects(None::<PostgresqlRdbms>);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.
§Example
let x = PostgresqlSourceConfig::new().set_replication_slot("example");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.
§Example
let x = PostgresqlSourceConfig::new().set_publication("example");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.
§Example
let x = PostgresqlSourceConfig::new().set_max_concurrent_backfill_tasks(42);Trait Implementations§
Source§impl Clone for PostgresqlSourceConfig
impl Clone for PostgresqlSourceConfig
Source§fn clone(&self) -> PostgresqlSourceConfig
fn clone(&self) -> PostgresqlSourceConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more