pub struct CdcSourceConfig {
pub source: ChangeSource,
pub change_types: Vec<ChangeType>,
pub columns: Option<Vec<String>>,
pub filter: Option<String>,
}Expand description
Configuration for a CDC source.
Fields§
§source: ChangeSource§change_types: Vec<ChangeType>§columns: Option<Vec<String>>§filter: Option<String>Implementations§
Source§impl CdcSourceConfig
impl CdcSourceConfig
pub fn new(database: impl Into<String>, table: impl Into<String>) -> Self
pub fn inserts_only(self) -> Self
pub fn updates_only(self) -> Self
pub fn deletes_only(self) -> Self
pub fn with_columns(self, columns: Vec<String>) -> Self
pub fn with_filter(self, filter: impl Into<String>) -> Self
pub fn should_capture(&self, change_type: ChangeType) -> bool
Trait Implementations§
Source§impl Clone for CdcSourceConfig
impl Clone for CdcSourceConfig
Source§fn clone(&self) -> CdcSourceConfig
fn clone(&self) -> CdcSourceConfig
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 CdcSourceConfig
impl Debug for CdcSourceConfig
Source§impl<'de> Deserialize<'de> for CdcSourceConfig
impl<'de> Deserialize<'de> for CdcSourceConfig
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
Auto Trait Implementations§
impl Freeze for CdcSourceConfig
impl RefUnwindSafe for CdcSourceConfig
impl Send for CdcSourceConfig
impl Sync for CdcSourceConfig
impl Unpin for CdcSourceConfig
impl UnsafeUnpin for CdcSourceConfig
impl UnwindSafe for CdcSourceConfig
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